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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57a6a8
push 0x51cbf0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff64
push ebx
push esi
push edi
mov eax, dword [0x58df90]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x34], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401ea3
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x80]
jmp 0x402378
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00401d20
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x401ed2
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x78]
jmp 0x402378
mov eax, dword [ebp - 0x48]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401d20
add esp, 8
add eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401d20
add esp, 8
add eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401d20
add esp, 8
add eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
cmp dword [ebp + 0xc], 0
je 0x40207b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x40207b
xor edx, edx
mov word [ebp - 0x24], dx
jmp 0x401f50
mov ax, word [ebp - 0x24]
add ax, 1
mov word [ebp - 0x24], ax
movzx ecx, word [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
cmp ecx, dword [edx + 0x14]
jae 0x40205a
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ecx]
cmp ecx, dword [edx + eax*4]
jne 0x402055
cmp dword [ebp + 0x10], 0
je 0x401f8b
movzx edx, word [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov word [ecx], dx
cmp dword [ebp + 0x14], 0
je 0x402039
xor edx, edx
mov word [ebp - 0x2c], dx
jmp 0x401fa9
mov ax, word [ebp - 0x2c]
add ax, 1
mov word [ebp - 0x2c], ax
movzx ecx, word [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp ecx, dword [edx + 0x18]
jae 0x402039
movzx eax, word [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
movzx edx, word [ecx + eax*2]
movzx eax, word [ebp - 0x24]
cmp edx, eax
jne 0x402034
movzx ecx, word [ebp - 0x2c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401d20
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x402034
mov edx, dword [ebp - 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x64]
mov cl, byte [eax]
mov byte [ebp - 0x25], cl
mov edx, dword [ebp - 0x60]
mov al, byte [ebp - 0x25]
mov byte [edx], al
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
cmp byte [ebp - 0x25], 0
jne 0x40200a
jmp 0x402039
jmp 0x401f9d
mov dword [ebp - 0x88], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x88]
jmp 0x402378
jmp 0x401f44
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xa4]
jmp 0x402378
cmp dword [ebp + 0x14], 0
je 0x402098
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0x14]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x4021ed
cmp dword [ebp + 0x10], 0
je 0x4020a8
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
test edx, edx
jne 0x4020c4
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x90]
jmp 0x402378
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
cmp ecx, dword [edx + 0x10]
jb 0x4020ec
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x10]
lea eax, [eax + edx - 1]
cmp ecx, eax
jbe 0x402108
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xa0]
jmp 0x402378
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
mov eax, dword [ebp - 0x1c]
sub edx, dword [eax + 0x10]
mov word [ebp - 0x40], dx
cmp dword [ebp + 0xc], 0
je 0x40212d
movzx ecx, word [ebp - 0x40]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + ecx*4]
mov dword [edx], ecx
cmp dword [ebp + 0x14], 0
je 0x4021d2
mov dword [ebp - 0x44], 0
jmp 0x402149
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax + 0x18]
jae 0x4021d2
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax + edx*2]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
jne 0x4021cd
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00401d20
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4021cd
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x70]
mov al, byte [edx]
mov byte [ebp - 0x2d], al
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ebp - 0x2d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
cmp byte [ebp - 0x2d], 0
jne 0x4021a3
jmp 0x4021d2
jmp 0x402140
mov dword [ebp - 0x7c], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x7c]
jmp 0x402378
mov dword [ebp - 0x3c], 0
jmp 0x4021ff
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 0x14]
jae 0x40232b
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
cmp dword [eax + edx*4], 0
jne 0x40221c
jmp 0x4021f6
mov dword [ebp - 0x4c], 0
jmp 0x40222e
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 0x18]
jae 0x402326
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x68]
movzx eax, word [edx + ecx*2]
cmp eax, dword [ebp - 0x3c]
jne 0x402321
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401d20
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x402321
mov edx, dword [ebp - 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov al, byte [edx]
mov byte [ebp - 0x36], al
mov ecx, dword [ebp - 0x58]
cmp al, byte [ecx]
jne 0x4022c5
cmp byte [ebp - 0x36], 0
je 0x4022bc
mov edx, dword [ebp - 0x54]
mov al, byte [edx + 1]
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x58]
cmp al, byte [ecx + 1]
jne 0x4022c5
add dword [ebp - 0x54], 2
add dword [ebp - 0x58], 2
cmp byte [ebp - 0x35], 0
jne 0x402288
mov dword [ebp - 0x74], 0
jmp 0x4022cd
sbb edx, edx
or edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x402321
cmp dword [ebp + 0x10], 0
je 0x4022f4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
add edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x10]
mov word [eax], dx
cmp dword [ebp + 0xc], 0
je 0x402308
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + edx*4]
mov dword [ecx], edx
mov dword [ebp - 0x8c], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x8c]
jmp 0x402378
jmp 0x402225
jmp 0x4021f6
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x94]
jmp 0x402378
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret