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

Disassembly:
jmp 0x41e540
sub esp, 0x54
push ebx
push esi
mov esi, dword [esp + 0x60]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x41ef3e
push 0x4a50e0
push 0x4a8f88
call fcn.00401325
add esp, 8
cmp eax, 0x4a7280
jne 0x41e5e3
cmp dword [esi + 0xc], ebx
jne 0x41e5e3
cmp dword [esi + 8], ebx
jne 0x41e5e3
cmp dword [esi + 4], ebx
jne 0x41e5e3
cmp dword [0x4a505c], ebx
jne 0x41e5e3
cmp dword [0x4a5070], ebx
jne 0x41e597
cmp dword [0x4a5074], ebx
je 0x41e5e3
cmp byte [esi], 1
jne 0x41e5e3
push esi
call fcn.004011d1
add esp, 4
test eax, eax
jne 0x41e5e3
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov dx, word [ecx]
and dx, 0xf7ff
cmp dx, 0x8000
jne 0x41e5cc
mov eax, ecx
lea ecx, [eax + 2]
push ecx
push eax
call fcn.004014ba
add esp, 8
push esi
call fcn.004017da
push esi
call fcn.00401dde
add esp, 8
test eax, eax
je 0x41ef3e
cmp dword [0x4a50b8], ebx
push ebp
push edi
je 0x41e7cf
cmp dword [0x4a5070], ebx
jne 0x41e605
cmp dword [0x4a5074], ebx
je 0x41e7cf
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41e7cf
cmp dword [eax], ebx
je 0x41e7cf
mov edx, dword [eax]
cmp word [edx], bx
je 0x41e7cf
push eax
call fcn.00401253
add esp, 4
cmp eax, 1
jne 0x41e7cf
cmp dword [0x4a5084], ebx
jne 0x41e7cf
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00401c2b
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41e73c
cmp word [ebp], 0x7e
jne 0x41e73c
lea ecx, [ebp + 2]
mov edi, ecx
movzx eax, word [edi]
cmp ax, bx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x41e692
lea ecx, [ecx]
cmp ax, 0x2f
je 0x41e692
movzx eax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x41e680
cmp edi, ecx
je 0x41e6fd
mov edx, edi
sub edx, ebp
sub edx, 2
sar edx, 1
push edx
push ecx
call fcn.004015c3
push eax
mov dword [esp + 0x74], eax
call fcn.00401b13
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41e6dc
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.0040157d
push ebx
call fcn.00401348
mov eax, dword [esp + 0x74]
add esp, 0xc
push eax
call fcn.00401348
add esp, 4
jmp 0x41e71a
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0040157d
mov eax, dword [esp + 0x70]
add esp, 8
push eax
call fcn.00401348
add esp, 4
jmp 0x41e71a
push 0x4a50e0
push 0x4a7290
call fcn.00401325
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0040157d
add esp, 0x10
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0040157d
push ebp
call fcn.00401348
lea eax, [esp + 0x34]
push eax
call fcn.0040141f
add esp, 0x10
mov ebp, eax
xor ebx, ebx
push ebp
call fcn.0040192e
push ebp
mov edi, eax
call fcn.00401348
add esp, 8
cmp edi, ebx
je 0x41e7cf
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.0040191f
add esp, 8
cmp eax, 0xffffffff
je 0x41e776
mov edx, dword [esp + 0x3a]
and edx, 0xf000
cmp edx, 0x4000
je 0x41e787
cmp byte [edi], 0
je 0x41e7cf
cmp byte [edi + 1], 0x3a
jne 0x41e7cf
cmp byte [edi + 2], 0
jne 0x41e7cf
mov edi, dword [esi + 0x10]
push 0x4a7748
call fcn.004019f6
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x28], ebx
call fcn.00401285
push edi
mov dword [esi + 0x10], eax
call fcn.00401348
add esp, 0x10
cmp dword [0x4a50b8], 1
jle 0x41e7cf
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040109b
push 0xa
call fcn.00401910
add esp, 8
test byte [esi + 4], 1
je 0x41e7d9
mov dword [esp + 0x6c], ebx
movzx eax, byte [esi]
add eax, 0xffffffff
cmp eax, 5
ja case.default.0x41e7e8
jmp dword [eax*4 + 0x41ef44]
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
mov cx, word [eax]
and cx, 0xf7ff
cmp cx, 0x8000
jne 0x41e820
mov edi, dword [edx]
add eax, 2
push eax
call fcn.00401dd4
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 2]
push ecx
push edi
call fcn.0044c060
add esp, 0x10
test dword [esi + 4], 0x400
jne 0x41e832
push esi
call fcn.004017da
add esp, 4
mov edx, dword [esi + 0x10]
cmp dword [edx], 0
je 0x41ef3c
test byte [esi + 4], 8
je 0x41e851
mov eax, dword [esp + 0x74]
push eax
call fcn.004011f4
add esp, 4
test dword [esi + 4], 0x200
je 0x41e880
push 0
call fcn.0040146a
mov ecx, dword [esi + 8]
push ecx
call fcn.00401ac3
add esp, 8
cmp dword [0x4a5084], 0
je 0x41e880
push 0
call fcn.0040146a
add esp, 4
push 2
push 0x4a7250
push 0x4a7240
call fcn.0040101e
add esp, 0xc
cmp byte [esi], 1
jne 0x41eaa3
mov edi, 0x800
mov ebx, 0x1000
mov ebp, 0x8000
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push 0x4a7d78
push eax
call fcn.004014b5
add esp, 8
test eax, eax
jne 0x41e93f
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
je 0x41e9c1
mov ecx, dword [eax + 4]
movsx edx, word [ecx]
push edx
push 0x47e5e4
call fcn.0044b8e0
add esp, 8
test eax, eax
je 0x41e928
mov eax, dword [esi + 0x10]
cmp dword [eax + 8], 0
je 0x41e9c1
mov dword [0x488e40], str.nice
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.00401cad
mov byte [esi + 1], al
mov eax, dword [esi + 0x10]
push 2
push eax
call fcn.00401c67
add esp, 0xc
or dword [esi + 4], edi
jmp 0x41e9b8
mov ecx, dword [esi + 0x10]
push 1
push ecx
mov byte [esi + 1], 4
call fcn.00401c67
add esp, 8
or dword [esi + 4], edi
jmp 0x41e9b8
mov edx, dword [esi + 0x10]
mov eax, dword [edx]
push 0x4a7d64
push eax
call fcn.004014b5
add esp, 8
test eax, eax
jne 0x41e964
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
je 0x41e9c1
or dword [esi + 4], ebx
jmp 0x41e9ad
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push 0x4a7d70
push edx
call fcn.004014b5
add esp, 8
test eax, eax
mov eax, dword [esi + 0x10]
jne 0x41e989
cmp dword [eax + 4], 0
je 0x41e9c1
or dword [esi + 4], ebp
jmp 0x41e9ad
mov ecx, dword [eax]
push 0x4a78dc
push ecx
call fcn.004014b5
add esp, 8
test eax, eax
jne 0x41e9c1
mov eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
je 0x41e9c1
or dword [esi + 4], 0x2000
push 1
push eax
call fcn.00401c67
add esp, 8
cmp byte [esi], 1
je 0x41e8b0
cmp byte [esi], 1
jne 0x41eaa3
push esi
call fcn.004011d1
xor ebx, ebx
add esp, 4
cmp dword [0x4a5084], ebx
mov dword [esp + 0x68], eax
je 0x41eaba
mov edx, dword [esp + 0x68]
test edx, edx
je case.default.0x41e7e8
mov eax, dword [esp + 0x68]
cmp dword [eax + 4], 0x4016d6
je 0x41eaba
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x401c94
je 0x41eaba
mov edx, dword [esp + 0x68]
cmp dword [edx + 4], 0x401735
je 0x41eaba
mov eax, dword [esp + 0x68]
cmp dword [eax + 4], 0x4010b4
je 0x41eaba
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x4014e2
je 0x41eaba
mov edx, dword [esp + 0x68]
cmp dword [edx + 4], 0x401771
je 0x41eaba
mov eax, dword [esp + 0x68]
cmp dword [eax + 4], 0x401bc7
je 0x41eaba
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x401299
je 0x41eaba
mov edx, dword [esp + 0x68]
cmp dword [edx + 4], 0x4015b4
je 0x41eaba
mov eax, dword [esp + 0x68]
cmp dword [eax + 4], 0x401cb7
je 0x41eaba
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x40159b
je 0x41eaba
mov edx, dword [esp + 0x68]
cmp dword [edx + 4], 0x401320
jne case.default.0x41e7e8
jmp 0x41eaba
cmp dword [0x4a5084], 0
mov dword [esp + 0x68], 0
jne case.default.0x41e7e8
xor ebx, ebx
cmp byte [esi], 1
jne 0x41eb01
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x41eb01
cmp dword [0x4a5084], ebx
jne 0x41eb01
cmp dword [0x4a5070], ebx
je 0x41eb01
cmp dword [0x4a50a4], ebx
je 0x41eb01
push esi
call fcn.00401d3e
mov edi, eax
push fcn.00401348
push edi
call fcn.004013d9
push edi
call fcn.004016fe
push edi
call fcn.00401eb5
add esp, 0x14
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x41eb37
mov edx, dword [esp + 0x68]
cmp dword [edx + 4], 0x401712
je 0x41eb30
mov eax, dword [esp + 0x68]
cmp dword [eax + 4], 0x401582
je 0x41eb30
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x401bb3
jne 0x41eb37
and dword [esi + 4], 0xfffff7ff
mov eax, dword [esi + 4]
test eax, 0x2000
jne 0x41eb7d
test al, 0x10
jne 0x41eb56
mov edx, dword [esp + 0x68]
test edx, edx
je 0x41eb7d
test dword [esi + 4], 0x9809
jne 0x41eb7d
mov eax, dword [esp + 0x68]
test eax, eax
je 0x41ec65
test byte [esi + 4], 4
je 0x41ec65
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0x4012a3
jne 0x41ec65
mov edx, dword [esp + 0x6c]
test edx, edx
mov ebp, 1
jl 0x41ebbb
cmp dword [0x4a6af8], ebx
jne 0x41ebbb
lea eax, [esp + 0x10]
push 0xf
push eax
mov dword [esp + 0x18], ebx
call fcn.0040146f
push 0x4889d4
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00401bef
add esp, 0x14
mov dword [0x4a6af8], ebp
mov edx, dword [esp + 0x6c]
push edx
push esi
call fcn.00401082
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x41ebf3
cmp dword [0x4a6af8], ebx
je 0x41ec69
push ebx
push 0x4889d4
push 2
call fcn.00401bef
add esp, 0xc
mov dword [0x4a6af8], ebx
jmp 0x41ebff
test byte [esi + 4], 1
je 0x41ebff
mov dword [0x488b74], edi
cmp edi, ebx
je 0x41ec69
cmp dword [0x4a505c], ebx
jne 0x41ec29
test byte [esi + 4], 4
je 0x41ec29
mov edi, dword [esp + 0x70]
mov eax, dword [edi]
push eax
call fcn.0040146a
mov ecx, dword [edi + 4]
push ecx
call fcn.0040146a
add esp, 8
test byte [esi + 4], 8
jne case.default.0x41e7e8
cmp dword [0x4a6af8], ebx
je 0x41ec51
push ebx
push 0x4889d4
push 2
call fcn.00401bef
add esp, 0xc
mov dword [0x4a6af8], ebx
test byte [esi + 4], 1
jne case.default.0x41e7e8
call fcn.00401384
jmp case.default.0x41e7e8
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push edi
mov ecx, esi
call fcn.0041e1b0
add esp, 4
test byte [esi + 4], 8
je 0x41ec96
mov edx, dword [edi]
push edx
call fcn.0040146a
mov eax, dword [edi + 4]
push eax
call fcn.0040146a
add esp, 8
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x41ed14
mov edx, dword [esp + 0x68]
push edx
push esi
call fcn.00401c49
add esp, 8
cmp ebp, ebx
je 0x41ecba
call fcn.004011c7
jmp case.default.0x41e7e8
push 0x4a50e0
push 0x4a78f8
call fcn.00401334
add esp, 8
test eax, eax
je case.default.0x41e7e8
push 0x4a50e0
push 0x4a7240
call fcn.00401325
push eax
call fcn.00401cad
add esp, 0xc
cmp eax, ebx
je case.default.0x41e7e8
push eax
push str.Exit__d_n
push 2
push 0x11
call fcn.00401069
add esp, 0xc
push eax
call fcn.004019c9
add esp, 8
jmp case.default.0x41e7e8
cmp byte [esi], 2
je 0x41ed27
mov eax, dword [esp + 0x78]
push eax
push esi
call fcn.00401235
add esp, 8
push 0x13
push ebx
call fcn.00401091
push 1
push eax
mov dword [0x4a50dc], eax
call fcn.004017a8
push 0x11
push 1
call fcn.00401091
push 1
push eax
mov dword [0x4a50d4], eax
call fcn.004017a8
mov ecx, dword [0x4a50d4]
push ecx
call fcn.00401870
push 0x12
push 2
mov dword [0x4a50a4], eax
call fcn.00401091
push 1
push eax
mov dword [0x4a50d8], eax
call fcn.004017a8
mov edx, dword [0x4a50d8]
push edx
call fcn.00401870
mov dword [0x4a50a8], eax
mov eax, dword [0x4a50d0]
push eax
call fcn.0040146a
mov edx, dword [esp + 0xb4]
or eax, 0xffffffff
mov dword [0x4a50d0], eax
mov dword [0x4a5058], ebx
mov dword [0x4a505c], ebx
mov ecx, dword [esi + 4]
push edx
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x14]
and ecx, 0x20
or dword [eax + 4], ecx
mov eax, dword [esp + 0xac]
mov ecx, dword [esi + 0x14]
push ebx
push ebx
push eax
push ecx
call fcn.004018ca
add esp, 0x50
call fcn.004011c7
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
and edx, 0xa5
or edx, 8
or dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call fcn.004018ca
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x88]
and ecx, 0x39
or ecx, 4
or dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
push edi
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.004018ca
add esp, 0x28
jmp case.default.0x41e7e8
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [esp + 0x78]
je 0x41ee89
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x6c]
push edi
push 0
and ecx, 0x20
or dword [eax + 4], ecx
mov eax, dword [esi + 8]
push 0
push edx
push eax
call fcn.004018ca
mov ecx, dword [esi + 8]
add esp, 0x14
test byte [ecx + 4], 1
je 0x41ee89
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41ee89
test byte [eax + 4], 1
jne 0x41ee89
call fcn.00401708
mov eax, dword [esi + 0xc]
test eax, eax
je case.default.0x41e7e8
mov edx, dword [esi + 4]
push edi
push 0
and edx, 0x30
or dword [eax + 4], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
jmp 0x41ef1d
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [esp + 0x78]
je 0x41eeff
mov edx, dword [esi + 4]
push edi
and edx, 0x20
or dword [eax + 4], edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esi + 8]
push 0
push 0
push eax
push ecx
call fcn.004018ca
push 0x4a50e0
push 0x4a7240
call fcn.00401325
push eax
call fcn.00401cad
add esp, 0x20
neg eax
sbb eax, eax
xor edx, edx
add eax, 1
cmp byte [esi], 6
sete dl
cmp eax, edx
jne 0x41ef3c
mov eax, dword [esi + 0xc]
test eax, eax
je case.default.0x41e7e8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x6c]
push edi
push 0
and ecx, 0x30
or dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
push 0
push edx
push eax
call fcn.004018ca
add esp, 0x14
cmp dword [0x4a505c], 0
je 0x41ef3c
test dword [esi + 4], 0x400
jne 0x41ef3c
call fcn.004011db
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x54
ret