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

Disassembly:
sub esp, 0x58
push ebp
push edi
mov edi, dword [esp + 0x74]
xor ebp, ebp
cmp edi, ebp
je 0x40235a
push ebx
mov ebx, dword [esp + 0x70]
cmp ebx, ebp
je 0x402359
push esi
mov esi, dword [esp + 0x78]
cmp esi, ebp
je 0x402358
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ebx]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], ebp
cmp eax, ebp
je 0x402072
push eax
call fcn.00422423
add esp, 4
mov dword [ebx], ebp
mov dword [esi], ebp
mov ebp, dword [esp + 0x6c]
mov eax, dword [edi + 0x278]
mov ecx, dword [edi]
test ebp, ebp
je 0x4022c9
mov edi, dword [esp + 0x70]
test edi, edi
je 0x4022c9
test eax, eax
je 0x4020f0
lea eax, [edi*4]
push eax
call fcn.00422359
mov dword [ebx], eax
mov dword [esi], edi
mov edx, dword [ebx]
add esp, 4
test edx, edx
jne 0x4020be
mov dword [esi], edx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x58
ret
xor eax, eax
test edi, edi
jle 0x402358
lea ecx, [ebp + 6]
jmp 0x4020d0
movzx esi, word [ecx - 2]
mov word [edx + eax*4], si
movzx esi, word [ecx]
mov word [edx + eax*4 + 2], si
inc eax
add ecx, 0x30
cmp eax, edi
jl 0x4020d0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x58
ret
xor edx, edx
cmp dword [0x43b158], edx
jle 0x402157
jmp 0x402104
mov ebp, dword [esp + 0x6c]
xor ecx, ecx
cmp edi, ecx
mov dword [esp + edx*4 + 0x18], ecx
jle 0x402141
movzx ebx, word [edx*4 + 0x43b14c]
lea eax, [ebp + 6]
lea esp, [esp]
cmp bx, word [eax - 2]
jne 0x402133
mov bp, word [edx*4 + 0x43b14e]
cmp bp, word [eax]
je 0x40213d
inc ecx
add eax, 0x30
cmp ecx, edi
jl 0x402120
jmp 0x402141
cmp ecx, edi
jl 0x40214e
mov eax, 1
add dword [esp + 0x7c], eax
mov dword [esp + edx*4 + 0x18], eax
inc edx
cmp edx, dword [0x43b158]
jl 0x402100
mov ecx, dword [esp + 0x7c]
lea ebx, [ecx + edi]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00422359
mov ebp, dword [esp + 0x78]
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x402358
push ebx
push 0
push eax
call fcn.00422290
mov ecx, dword [ebp]
add esp, 0xc
mov dword [esi], 0
lea ebx, [edi - 1]
test edi, edi
jle 0x402358
mov dword [esp + 0x10], edi
mov edi, edi
mov edi, dword [esi]
xor eax, eax
test edi, edi
jle 0x4021ce
mov ebp, dword [esp + 0x6c]
lea edx, [ebx + ebx*2]
shl edx, 4
add edx, ebp
movzx ebp, word [edx + 4]
cmp word [ecx + eax*4], bp
jne 0x4021c9
mov bp, word [ecx + eax*4 + 2]
cmp bp, word [edx + 6]
je 0x4021ce
inc eax
cmp eax, edi
jl 0x4021b4
cmp eax, edi
mov ebp, dword [esp + 0x6c]
jl 0x4021f4
lea eax, [ebx + ebx*2]
shl eax, 4
mov dx, word [eax + ebp + 4]
add eax, ebp
mov word [ecx + edi*4], dx
mov edx, dword [esi]
mov ax, word [eax + 6]
mov word [ecx + edx*4 + 2], ax
inc dword [esi]
test ebx, ebx
jne 0x4021fe
xor edx, edx
xor eax, eax
jmp 0x40220f
lea edx, [ebx + ebx*2]
shl edx, 4
lea eax, [edx + ebp]
mov dx, word [eax - 0x2c]
mov ax, word [eax - 0x2a]
mov word [esp + 0x7c], dx
xor edx, edx
cmp dword [0x43b158], edx
mov word [esp + 0x7e], ax
jle 0x4022b5
jmp 0x402234
mov ebp, dword [esp + 0x6c]
cmp dword [esp + edx*4 + 0x18], 0
je 0x4022a8
cmp dword [esp + edx*4 + 0x40], 0
jne 0x4022a8
movzx eax, word [edx*4 + 0x43b14c]
cmp word [esp + 0x7c], ax
jae 0x40225e
lea edi, [ebx + ebx*2]
shl edi, 4
cmp ax, word [edi + ebp + 4]
jb 0x402289
lea edi, [ebx + ebx*2]
shl edi, 4
add edi, ebp
mov dword [esp + 0x14], edi
cmp ax, word [edi + 4]
jne 0x4022a8
movzx edi, word [edx*4 + 0x43b14e]
cmp word [esp + 0x7e], di
jae 0x4022a8
mov ebp, dword [esp + 0x14]
cmp di, word [ebp + 6]
jae 0x4022a8
mov edi, dword [esi]
mov word [ecx + edi*4], ax
mov eax, dword [esi]
mov di, word [edx*4 + 0x43b14e]
mov word [ecx + eax*4 + 2], di
inc dword [esi]
mov dword [esp + edx*4 + 0x40], 1
inc edx
cmp edx, dword [0x43b158]
jl 0x402230
dec ebx
sub dword [esp + 0x10], 1
jne 0x4021a0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x58
ret
test eax, eax
je 0x4022da
mov edi, dword [0x43b148]
mov ebp, 0x43b138
jmp 0x4022fa
test ecx, 0xff00
je 0x4022ef
mov edi, dword [0x43b134]
mov ebp, 0x43b128
jmp 0x4022fa
mov edi, dword [0x43b158]
mov ebp, 0x43b14c
lea ebx, [edi*4]
push ebx
call fcn.00422359
mov ecx, dword [esp + 0x78]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x402358
push ebx
push 0
push eax
call fcn.00422290
mov edx, dword [esp + 0x80]
add esp, 0xc
xor ecx, ecx
mov dword [esi], edi
mov esi, dword [edx]
test edi, edi
jle 0x402358
mov edx, ebp
lea eax, [esi + 2]
sub edx, esi
jmp 0x402340
movzx esi, word [ebp + ecx*4]
mov word [eax - 2], si
movzx esi, word [edx + eax]
mov word [eax], si
inc ecx
add eax, 4
cmp ecx, edi
jl 0x402340
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x58
ret