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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48bebb
push eax
mov dword fs:[0], esp
sub esp, 0x100
cmp dword [0x49d328], 0
push ebx
push esi
push edi
je 0x402f8e
cmp dword [0x4a0bb0], 0
jne 0x402f8e
mov ecx, dword [0x4a1344]
mov ebx, dword [0x4a0bc4]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x402c66
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x402c66
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x402c57
cmp eax, ecx
je 0x402f8e
mov ecx, dword [0x49d334]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4a0b94]
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x402ca6
add ecx, 2
cmp eax, ecx
jge 0x402f8e
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0xd8
je 0x402ca6
cmp al, 0xd3
jne 0x402f8e
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x402f8e
mov eax, dword [0x49d3c8]
cmp dword [eax + 0x2c], 0
jg 0x402f8e
mov ecx, dword [0x4a13a4]
mov edi, 1
push edi
call fcn.00401230
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.0047a8e0
mov byte [esp + 0x113], 0
mov edx, dword [esi + 4]
movzx eax, byte [edx]
add esp, 0xc
push eax
push 0
push 0
mov al, 1
call fcn.00402fb0
mov eax, dword [ebp + 8]
add esp, 0xc
call int.004685d0
mov esi, dword [0x49d3c8]
mov dword [esi + 0xa0], eax
test eax, eax
je 0x402d86
mov edi, eax
call fcn.004012d0
mov edi, eax
test edi, edi
je 0x402d81
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 8]
push eax
mov dword [esi + 0x4c], edx
call dword [0x48d614]
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x402d5f
mov ecx, dword [ebp + 8]
push ecx
call dword [0x48d610]
test eax, eax
je 0x402d5f
push eax
call dword [0x48d614]
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x402d6d
mov eax, 0x2af8
mov esi, dword [0x49d3c8]
cmp eax, edi
mov edi, 1
jae 0x402d86
mov dword [esi + 0x48], eax
jmp 0x402d86
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x402da1
mov edx, dword [eax + 0x14]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x78]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
call dword [0x48d2e4]
xor esi, esi
mov dword [0x4a3104], eax
mov dword [0x4a3100], eax
add word [ebx + 8], di
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push esi
push 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x128], esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0044ec60
test al, al
je 0x402e8c
lea ecx, [esp + 0x28]
call fcn.00445890
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x402e77
push esi
lea ecx, [esp + 0x2c]
call fcn.004458f0
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp dword [esp + 0x30], 5
jne 0x402e91
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x402e91
mov byte [esp + 0x13], 0
mov dword [esp + 0x114], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402eb7
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004670b0
add esp, 0xc
mov ecx, dword [0x4a13a4]
sub dword [0x4a0b94], edi
sub dword [0x49d3c8], 0xd8
push edi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
call fcn.004668b0
push esi
mov eax, 0x4a2c18
call fcn.00414620
mov ecx, dword [0x4a1344]
cmp ecx, dword [esp + 0x24]
jl 0x402f24
mov edx, dword [ebp + 0xc]
cmp dword [ebx + 4], edx
jne 0x402f24
movzx eax, word [ebx + 8]
cmp ax, si
je 0x402f75
dec eax
mov word [ebx + 8], ax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, esi
jle 0x402f75
mov edx, dword [0x4a0bc4]
add edx, 4
mov ebx, dword [ebp + 0xc]
cmp dword [edx], ebx
je 0x402f5c
add eax, edi
add edx, 0xc
cmp eax, ecx
jl 0x402f33
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4a0bc4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4 + 8]
movzx ecx, word [eax]
cmp cx, si
je 0x402f75
dec ecx
mov word [eax], cx
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret