Function at 0x4c04f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x40]
push ebx
push ebp
mov ebp, ecx
shr ebp, 6
push esi
mov esi, dword [esp + 0x40]
and ebp, 1
mov ebx, 9
mov dword [esp + 0x30], 0
test esi, esi
jne 0x4c0521
pop esi
pop ebp
lea eax, [ebx - 8]
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4c0535
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x30
ret
mov dword [eax], 0
mov eax, dword [esp + 0x44]
push edi
cmp eax, 0xa
ja case.default.0x4c0549
jmp dword [eax*4 + 0x4c09c8]
mov edi, dword [esi]
mov ebx, 0xa
xor ebp, ebp
test edi, edi
je case.default.0x4c0549
push edi
call dword [0x54ae74]
mov edi, dword [esp + 0x50]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4c06c1
cmp dword [esp + 0x34], 0
je 0x4c0593
cmp byte [eax], 0
je 0x4c0593
cmp byte [eax], 0x2b
jne 0x4c058d
mov byte [eax], 0x20
inc eax
cmp byte [eax], 0
jne 0x4c0585
test ebp, ebp
je 0x4c09bc
mov eax, dword [edi]
push 3
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x58]
push edx
push 0
push eax
push 0
call fcn.004a9d90
mov ecx, dword [edi]
push ecx
mov esi, eax
call dword [0x54ae6c]
add esp, 0x1c
test esi, esi
je 0x4c09b6
mov dword [edi], 0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x30
ret
mov edi, dword [esi + 4]
mov ebx, 0xb
jmp 0x4c0559
mov edi, dword [esi + 8]
mov ebx, 0xc
jmp 0x4c0559
mov edi, dword [esi + 0xc]
mov ebx, 0xd
jmp 0x4c0559
mov edi, dword [esi + 0x10]
mov ebx, 0xe
jmp 0x4c0559
mov edi, dword [esi + 0x14]
jmp 0x4c0559
mov edi, dword [esi + 0x18]
xor ebp, ebp
mov ebx, 0xf
test edi, edi
jne 0x4c065f
test cl, 1
je case.default.0x4c0549
mov esi, dword [esi]
test esi, esi
je case.default.0x4c0549
push esi
call fcn.00492e00
add esp, 4
test eax, eax
je case.default.0x4c0549
mov eax, dword [eax + 0x3c]
push eax
push 0x51a5f0
lea ecx, [esp + 0x40]
push 7
push ecx
call fcn.004a3770
add esp, 0x10
lea edi, [esp + 0x38]
jmp 0x4c0561
mov eax, dword [esi]
test eax, eax
je 0x4c0559
push eax
call fcn.00492e00
add esp, 4
test eax, eax
je 0x4c0559
mov edx, dword [eax + 0x3c]
cmp edx, dword [esi + 0x30]
jne 0x4c0559
test byte [esp + 0x50], 2
je 0x4c0559
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret
mov edi, dword [esi + 0x1c]
test edi, edi
jne 0x4c0561
push 0x519ea8
call dword [0x54ae74]
add esp, 4
mov dword [esi + 0x1c], eax
mov edi, eax
test eax, eax
jne 0x4c0559
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x30
ret
mov edi, dword [esi + 0x20]
mov ebx, 0x10
mov dword [esp + 0x34], ebp
jmp 0x4c0559
mov edi, dword [esi + 0x24]
mov ebx, 0x11
jmp 0x4c0559
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
xor ebp, ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebp
test eax, eax
je 0x4c074d
push eax
push str.file
call fcn.004a28f0
add esp, 8
test eax, eax
je 0x4c0749
mov eax, dword [esi + 0x24]
mov ecx, eax
test eax, eax
jne 0x4c0742
mov ecx, 0x5375ea
mov eax, ecx
push ecx
mov ecx, dword [esi + 0x1c]
push eax
push ecx
push str.file:___s_s_s
call fcn.004a42b0
add esp, 0x10
mov esi, eax
jmp 0x4c0987
mov eax, 0x51f3d8
jmp 0x4c0728
mov ecx, dword [esp + 0x50]
cmp dword [esi + 0x10], ebp
jne 0x4c075f
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x30
ret
mov eax, dword [esi]
test eax, eax
jne 0x4c0773
test cl, 4
je 0x4c09a9
mov eax, str.https
push eax
mov dword [esp + 0x34], eax
call fcn.00492e00
add esp, 4
mov edi, eax
test ebx, ebx
jne 0x4c07af
test byte [esp + 0x50], 1
je 0x4c07c8
test edi, edi
je 0x4c07d9
mov edx, dword [edi + 0x3c]
push edx
push 0x51a5f0
lea eax, [esp + 0x40]
push 7
push eax
call fcn.004a3770
add esp, 0x10
lea ebx, [esp + 0x38]
jmp 0x4c07c4
test edi, edi
je 0x4c07d9
mov ecx, dword [edi + 0x3c]
cmp ecx, dword [esi + 0x30]
jne 0x4c07c8
test byte [esp + 0x50], 2
je 0x4c07c8
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
je 0x4c07d9
test dword [edi + 0x48], 0x400
jne 0x4c07d9
mov dword [esp + 0x10], ebp
mov ecx, dword [esi + 0x10]
cmp byte [ecx], 0x5b
jne 0x4c0851
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c0851
lea edi, [ecx + 1]
jmp 0x4c07f0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4c07f0
sub ecx, edi
mov ebx, ecx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c0800
sub eax, edx
lea edi, [eax + ebx + 4]
push edi
call dword [0x54ae68]
mov ebp, eax
add esp, 4
mov dword [esp + 0x34], ebp
test ebp, ebp
je 0x4c06c1
mov eax, dword [esi + 0x10]
lea edx, [ebx - 1]
push edx
push eax
push ebp
call fcn.004d9440
mov ecx, dword [esi + 0x14]
push ecx
sub edi, ebx
push str.__25_s_
inc edi
lea edx, [ebx + ebp - 1]
push edi
push edx
call fcn.004a3770
mov ebx, dword [esp + 0x60]
add esp, 0x1c
mov eax, dword [esi + 0x24]
mov edx, 0x5375ea
mov dword [esp + 0x50], eax
test eax, eax
jne 0x4c08a8
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c0879
cmp byte [eax], 0
mov dword [esp + 0x14], eax
jne 0x4c087d
mov dword [esp + 0x14], edx
test eax, eax
je 0x4c088e
cmp byte [eax], 0
mov dword [esp + 0x18], 0x51f3cc
jne 0x4c0892
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x1c]
mov ecx, 0x519ea8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4c08b2
mov dword [esp + 0x1c], ecx
jmp 0x4c08bb
mov dword [esp + 0x44], 0x51f3d8
jmp 0x4c0869
cmp byte [eax], 0x2f
mov dword [esp + 0x20], ecx
jne 0x4c08bf
mov dword [esp + 0x20], edx
mov ecx, 0x519fa0
test ebx, ebx
je 0x4c08d2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
jmp 0x4c08da
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
test ebp, ebp
je 0x4c08e4
mov dword [esp + 0x2c], ebp
jmp 0x4c08eb
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c0904
cmp dword [esi + 8], eax
jne 0x4c0904
cmp dword [esp + 0x10], eax
jne 0x4c0904
mov ebp, 0x5375ea
jmp 0x4c0915
mov ebx, dword [esp + 0x10]
mov ebp, 0x51d60c
test ebx, ebx
jne 0x4c099f
mov ebx, 0x5375ea
mov edi, ebx
mov esi, dword [esi + 8]
mov edx, esi
test esi, esi
jne 0x4c092c
mov edx, 0x5375ea
mov ecx, edx
test eax, eax
jne 0x4c0935
mov eax, 0x5375ea
mov esi, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x4c]
push esi
push ebp
push ebx
push edi
push edx
push ecx
mov ecx, dword [esp + 0x68]
push eax
push ecx
push str._s:___s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call fcn.004a42b0
mov edx, dword [esp + 0x78]
push edx
mov esi, eax
call dword [0x54ae6c]
add esp, 0x48
test esi, esi
je 0x4c06c1
mov eax, dword [esp + 0x4c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov edi, 0x51f3a4
jmp 0x4c091c
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x50]
mov dword [edi], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret