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

Disassembly:
sub esp, 0x5c
push esi
mov esi, eax
mov eax, dword [esi + 0x4c]
xor edx, edx
push edi
mov edi, dword [esi + 0xb4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
cmp dword [esi + 0x70], edx
je 0x402b9e
mov ecx, dword [esi]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x64]
cmp ecx, eax
jae 0x4025f3
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4025f7
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x18]
push ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xa8]
push ebp
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], eax
cmp eax, edx
jle 0x4026ba
lea ebx, [ebx]
mov ebx, edi
sub ebx, dword [esp + 0x10]
lea ecx, [ebx + 0x18]
cmp ecx, dword [esi + 4]
jle 0x402674
test byte [esi + 0xc8], 1
je 0x402651
cmp dword [esi + 0xd0], edx
je 0x402651
push ebx
push str._RO___ld_bytes
push 1
call fcn.004016b0
add esp, 0xc
xor edx, edx
cmp ebx, edx
je 0x402670
mov edx, dword [esi + 0xb0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xcc]
push edx
push esi
push ebx
push eax
call ecx
add esp, 0x10
xor edx, edx
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0xa4]
mov ebx, dword [eax + ebp*8]
mov ecx, dword [esp + 0x38]
lea eax, [eax + ebp*8]
mov eax, dword [eax + 4]
mov dword [edi], ecx
mov cx, word [esp + 0x18]
mov word [edi + 4], 0x52
mov word [edi + 6], cx
mov dword [edi + 8], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
inc ebp
add edi, 0x18
cmp ebp, dword [esp + 0x28]
jl 0x402620
mov dword [esi + 0xa8], edx
cmp dword [esi + 0x40], edx
jne 0x40271e
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x4c]
cmp eax, edx
jne 0x4026e1
add ecx, 0x1b58
mov dword [esi + 0x78], 0x1b58
mov dword [esi + 0x74], ecx
jmp 0x402724
mov ebp, ecx
sub ebp, dword [esi + 0x74]
js 0x402724
cmp eax, 0x1b58
jae 0x4026f6
mov dword [esi + 0x78], 0x1b58
mov eax, dword [esi + 0x78]
mov ebp, eax
shr ebp, 1
add eax, ebp
mov dword [esi + 0x78], eax
cmp eax, 0x1d4c0
jbe 0x402710
mov dword [esi + 0x78], 0x1d4c0
mov eax, dword [esi + 0x78]
add eax, ecx
or dword [esi + 0x48], 1
mov dword [esi + 0x74], eax
jmp 0x402724
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
test byte [esi + 0x48], 1
je 0x4027ae
mov ebp, edi
sub ebp, dword [esp + 0x10]
lea ecx, [ebp + 0x18]
cmp ecx, dword [esi + 4]
jle 0x402782
test byte [esi + 0xc8], 1
je 0x40275f
cmp dword [esi + 0xd0], edx
je 0x40275f
push ebp
push str._RO___ld_bytes
push 1
call fcn.004016b0
add esp, 0xc
xor edx, edx
cmp ebp, edx
je 0x40277e
mov edx, dword [esi + 0xb0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xcc]
push edx
push esi
push ebp
push eax
call ecx
add esp, 0x10
xor edx, edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov cx, word [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x48]
mov word [edi + 4], 0x53
mov word [edi + 6], cx
mov ecx, dword [esp + 0x50]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
add edi, 0x18
test byte [esi + 0x48], 2
je 0x402838
mov ebp, edi
sub ebp, dword [esp + 0x10]
lea eax, [ebp + 0x18]
cmp eax, dword [esi + 4]
jle 0x40280c
test byte [esi + 0xc8], 1
je 0x4027e9
cmp dword [esi + 0xd0], edx
je 0x4027e9
push ebp
push str._RO___ld_bytes
push 1
call fcn.004016b0
add esp, 0xc
xor edx, edx
cmp ebp, edx
je 0x402808
mov ecx, dword [esi + 0xb0]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xcc]
push ecx
push esi
push ebp
push edx
call eax
add esp, 0x10
xor edx, edx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov ax, word [esp + 0x18]
mov dword [edi], ecx
mov ecx, dword [esp + 0x48]
mov word [edi + 4], 0x54
mov word [edi + 6], ax
mov eax, dword [esp + 0x50]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
add edi, 0x18
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0x38]
mov dword [esi + 0x48], edx
cmp ebx, eax
ja 0x40284b
mov dword [esp + 0x24], ebx
jmp 0x402851
mov ebx, eax
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc0], edx
jne 0x402866
mov eax, dword [esi + 0x44]
cmp eax, ebx
ja 0x402866
mov ebx, eax
mov dword [esp + 0x24], ebx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sub ecx, ebx
jns 0x40290f
jmp 0x402880
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x84]
cmp ecx, eax
je 0x40290f
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [ecx + 4], ebp
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
mov dword [ecx], ebp
mov dword [eax], edx
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x98]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x94]
mov dword [eax], ecx
mov ecx, dword [esi + 0x98]
mov dword [ecx], eax
dec dword [esi + 0x68]
inc dword [esi + 0x60]
mov ecx, dword [esi]
mov dword [esi + 0x98], eax
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], 0x51
mov dword [eax + 0x18], ecx
mov ebp, dword [esi + 0x14]
mov dword [eax + 0x1c], ebp
inc dword [esi + 0x14]
mov ebp, dword [esi + 0x18]
mov dword [eax + 0x20], ebp
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, ebx
js 0x402880
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x20], eax
cmp eax, edx
jg 0x402925
mov dword [esp + 0x20], 0xffffffff
cmp dword [esi + 0x6c], edx
jne 0x402936
mov eax, dword [esi + 0x30]
sar eax, 3
mov dword [esp + 0x28], eax
jmp 0x40293a
mov dword [esp + 0x28], edx
mov ebp, dword [esi + 0x94]
lea eax, [esi + 0x94]
cmp ebp, eax
je 0x402ae0
mov edi, edi
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x402974
mov dword [ebp + 0x34], 1
mov eax, dword [esi + 0x30]
mov dword [ebp + 0x2c], eax
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x14]
mov dword [ebp + 0x28], eax
jmp 0x402a0b
mov edx, dword [esp + 0x14]
sub edx, dword [ebp + 0x28]
js 0x4029d3
inc eax
mov dword [ebp + 0x34], eax
mov eax, dword [esi + 0x6c]
mov ebx, 1
add dword [esi + 0x58], ebx
test eax, eax
jne 0x4029ae
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp + 0x2c]
cmp eax, ecx
jb 0x40299c
mov ecx, eax
add eax, ecx
mov dword [ebp + 0x2c], eax
add eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [ebp + 0x28], eax
jmp 0x402a0b
cmp eax, 2
jae 0x4029b8
mov eax, dword [ebp + 0x2c]
jmp 0x4029bb
mov eax, dword [esi + 0x30]
cdq
sub eax, edx
sar eax, 1
add dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x2c]
add eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [ebp + 0x28], eax
jmp 0x402a0b
mov ecx, dword [esp + 0x20]
cmp dword [ebp + 0x30], ecx
jb 0x402acf
mov ecx, dword [esi + 0xbc]
cmp eax, ecx
jle 0x4029f2
test ecx, ecx
jg 0x402acf
mov edx, dword [ebp + 0x2c]
add edx, dword [esp + 0x14]
inc eax
inc dword [esp + 0x1c]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x28], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov ebx, edi
sub ebx, dword [esp + 0x10]
mov dword [ebp + 0x14], ecx
mov edx, dword [esi + 0x18]
lea ecx, [ebx + eax + 0x18]
mov dword [ebp + 0x20], edx
cmp ecx, dword [esi + 4]
jle 0x402a74
test byte [esi + 0xc8], 1
je 0x402a53
cmp dword [esi + 0xd0], 0
je 0x402a53
push ebx
push str._RO___ld_bytes
push 1
call fcn.004016b0
add esp, 0xc
test ebx, ebx
je 0x402a70
mov edx, dword [esi + 0xb0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xcc]
push edx
push esi
push ebx
push eax
call ecx
add esp, 0x10
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edi], edx
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
mov cl, byte [ebp + 0x10]
mov byte [edi + 5], cl
mov dx, word [ebp + 0x14]
mov word [edi + 6], dx
mov eax, dword [ebp + 0x18]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0xc], ecx
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x10], edx
mov eax, dword [ebp + 0x24]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x24]
add edi, 0x18
test eax, eax
je 0x402ac0
push eax
lea ecx, [ebp + 0x38]
push ecx
push edi
call fcn.005519f0
add esp, 0xc
add edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x34]
cmp edx, dword [esi + 0x7c]
jb 0x402acf
mov dword [esi + 0xc], 0xffffffff
mov ebp, dword [ebp]
lea eax, [esi + 0x94]
cmp ebp, eax
jne 0x402950
sub edi, dword [esp + 0x10]
pop ebp
pop ebx
test edi, edi
jle 0x402b25
test byte [esi + 0xc8], 1
je 0x402b0c
cmp dword [esi + 0xd0], 0
je 0x402b0c
push edi
push str._RO___ld_bytes
push 1
call fcn.004016b0
add esp, 0xc
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0xcc]
push eax
push esi
push edi
push ecx
call edx
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x402b59
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
shr eax, 1
mov dword [esi + 0x24], eax
cmp eax, 2
jae 0x402b43
mov dword [esi + 0x24], 2
mov eax, dword [esi + 0x24]
add eax, dword [esp + 0x18]
mov edx, dword [esi + 8]
imul edx, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], edx
cmp dword [esp + 0x24], 0
je 0x402b88
mov eax, dword [esp + 0x1c]
shr eax, 1
mov dword [esi + 0x24], eax
cmp eax, 2
jae 0x402b75
mov dword [esi + 0x24], 2
mov ecx, dword [esi + 8]
mov eax, 1
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], ecx
jmp 0x402b8d
mov eax, 1
cmp dword [esi + 0x44], eax
jae 0x402b9e
mov edx, dword [esi + 8]
mov dword [esi + 0x44], eax
mov dword [esi + 0x80], edx
pop edi
pop esi
add esp, 0x5c
ret