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

Disassembly:
push 0xffffffffffffffff
push 0x486c48
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4a2120]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2120]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor ebp, ebp
mov ebx, edx
mov edi, 7
xor eax, eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], ax
mov dword [esp + 0x98], ebp
xor ecx, ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], cx
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], dx
lea ecx, [esp + 0x38]
mov byte [esp + 0x98], 2
call fcn.00403190
mov ecx, ebx
call fcn.00403190
cmp esi, ebp
je 0x401ea5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401e83
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00403a90
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
xor eax, eax
xor esi, esi
cmp dword [esp + 0x14], ebp
jbe 0x4021a6
cmp eax, ebp
jne 0x4021a6
lea ecx, [esp + 0x70]
call fcn.00403190
lea ecx, [esp + 0x54]
call fcn.00403190
push 1
push esi
push 0x496fc4
lea ecx, [esp + 0x44]
call fcn.00404000
mov edi, eax
cmp edi, 0xffffffff
je 0x401f33
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.004033b0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 3
call fcn.00403990
mov ebp, 8
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], ebp
jb 0x401f2e
mov eax, dword [esp + 0x20]
push eax
call fcn.0043069a
add esp, 4
lea esi, [edi + 1]
jmp 0x401f38
mov ebp, 8
cmp esi, dword [esp + 0x14]
jae 0x402126
cmp dword [esp + 0x84], 0
je 0x40218c
cmp esi, dword [esp + 0x4c]
jbe 0x401f5b
call fcn.0043215f
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x401f69
lea eax, [esp + 0x3c]
movzx ecx, word [eax + esi*2]
push ecx
call fcn.004317f4
add esp, 4
test eax, eax
je 0x401fd9
push 1
push esi
push 0x496fc8
lea ecx, [esp + 0x44]
call fcn.00404000
mov edi, eax
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.004033b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 4
call fcn.00403990
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], ebp
jb 0x401fd2
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043069a
add esp, 4
mov esi, edi
jmp 0x402126
cmp esi, dword [esp + 0x4c]
jbe 0x401fe4
call fcn.0043215f
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x401ff2
lea eax, [esp + 0x3c]
cmp word [eax + esi*2], 0x22
jne 0x402234
lea ebx, [esi + 1]
cmp ebx, dword [esp + 0x14]
jae 0x402230
mov edi, ebx
lea ebp, [edi + 1]
nop
cmp edi, dword [esp + 0x4c]
jbe 0x40201b
call fcn.0043215f
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40202a
lea eax, [esp + 0x3c]
cmp word [eax + edi*2], 0x22
jne 0x402057
cmp ebp, dword [esp + 0x4c]
jbe 0x40203c
call fcn.0043215f
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40204b
lea eax, [esp + 0x3c]
cmp word [eax + edi*2 + 2], 0x22
jne 0x402057
inc edi
inc ebp
jmp 0x40209a
cmp edi, dword [esp + 0x4c]
jbe 0x402062
call fcn.0043215f
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x402071
lea eax, [esp + 0x3c]
cmp word [eax + edi*2], 0x22
jne 0x40209a
cmp ebp, dword [esp + 0x4c]
jbe 0x402083
call fcn.0043215f
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x402092
lea eax, [esp + 0x3c]
cmp word [eax + edi*2 + 2], 0x22
jne 0x4020a6
inc edi
inc ebp
cmp edi, dword [esp + 0x14]
jb 0x402010
cmp edi, 0xffffffff
je 0x4020fa
cmp edi, dword [esp + 0x14]
jae 0x4020fa
mov edx, edi
sub edx, esi
dec edx
push edx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.004033b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 5
call fcn.00403990
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], 8
jb 0x4020f8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043069a
add esp, 4
mov esi, edi
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x54]
push ecx
call fcn.00401cb0
add esp, 4
push 1
lea eax, [esp + 0x58]
call fcn.00403b80
push 1
push 0x496fcc
lea ecx, [esp + 0x5c]
call fcn.00403870
cmp dword [esp + 0x84], 0
je 0x40218c
cmp dword [ebx + 0x14], 0
je 0x402144
push 5
push 0x496fd0
mov ecx, ebx
call fcn.00403870
lea edx, [esp + 0x70]
push edx
call fcn.00401cb0
lea eax, [esp + 0x58]
add esp, 4
push eax
call fcn.00401cb0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.00402f80
push 1
push 0x496fc4
mov ecx, ebx
call fcn.00403870
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x5c]
push edx
mov ecx, ebx
call fcn.00402f80
xor eax, eax
cmp esi, 0xffffffff
sete al
inc esi
xor ebp, ebp
mov edi, 7
cmp esi, dword [esp + 0x14]
jb 0x401eb3
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x4021be
mov eax, dword [esp + 0x58]
push eax
call fcn.0043069a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], cx
cmp dword [esp + 0x88], esi
jb 0x4021e3
mov edx, dword [esp + 0x74]
push edx
call fcn.0043069a
add esp, 4
xor eax, eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], ax
cmp dword [esp + 0x50], esi
jb 0x40220b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043069a
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0043094a
add esp, 0x88
ret
mov ebx, dword [esp + 0x18]
push 1
push esi
push 0x496fc8
lea ecx, [esp + 0x44]
call fcn.00404000
cmp eax, 0xffffffff
jne 0x40224e
mov eax, dword [esp + 0x4c]
sub eax, esi
push eax
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.004033b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 6
call fcn.00403990
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], ebp
jb 0x402291
mov eax, dword [esp + 0x20]
push eax
call fcn.0043069a
add esp, 4
add esi, dword [esp + 0x68]
jmp 0x4020fe