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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
cmp dword [esi + 0x70], 0
mov edi, dword [esi + 0xb4]
mov ebx, edi
mov eax, dword [esi + 0x4c]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
je 0x402cbb
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi]
sub ecx, edx
cmp edx, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmovb eax, ecx
xor edx, edx
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4027f3
nop dword [eax]
mov edi, ebx
sub edi, dword [ebp + 8]
lea eax, [edi + 0x18]
cmp eax, dword [esi + 4]
jle 0x4027a5
test byte [esi + 0xc8], 1
je 0x402780
cmp dword [esi + 0xd0], 0
je 0x402780
push edi
push str._RO___ld_bytes
push 1
push esi
call fcn.00402cd0
add esp, 0x10
test edi, edi
je 0x40279d
push dword [esi + 0xb0]
mov eax, dword [esi + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call eax
add esp, 0x10
jmp 0x4027a0
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov ebx, edi
mov eax, dword [esi + 0xa4]
mov edi, dword [ebp - 0x14]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
inc ecx
mov dword [ebx], edi
mov edi, dword [ebp - 4]
mov word [ebx + 4], 0x52
mov word [ebx + 6], di
mov edi, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
add ebx, 0x18
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x2c]
jl 0x402750
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x40], 0
mov dword [esi + 0xa8], 0
jne 0x402853
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x4c]
test ecx, ecx
jne 0x40281e
add eax, 0x1b58
mov dword [esi + 0x78], 0x1b58
mov dword [esi + 0x74], eax
jmp 0x402861
sub eax, dword [esi + 0x74]
js 0x402861
cmp ecx, 0x1b58
jae 0x402832
mov dword [esi + 0x78], 0x1b58
mov eax, dword [esi + 0x78]
mov ecx, 0x1d4c0
shr eax, 1
add eax, dword [esi + 0x78]
cmp eax, ecx
cmova eax, ecx
mov dword [esi + 0x78], eax
add eax, dword [esi + 0x4c]
or dword [esi + 0x48], 1
mov dword [esi + 0x74], eax
jmp 0x402861
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
test byte [esi + 0x48], 1
je 0x4028eb
mov ecx, ebx
sub ecx, edi
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 0x18]
cmp eax, dword [esi + 4]
jle 0x4028bd
test byte [esi + 0xc8], 1
je 0x4028a0
cmp dword [esi + 0xd0], 0
je 0x4028a0
push ecx
push str._RO___ld_bytes
push 1
push esi
call fcn.00402cd0
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
test ecx, ecx
je 0x4028b8
push dword [esi + 0xb0]
mov eax, dword [esi + 0xcc]
push esi
push ecx
push edi
call eax
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov ebx, edi
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov word [ebx + 4], 0x53
mov word [ebx + 6], ax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
add ebx, 0x18
mov dword [ebp - 0xc], ebx
test byte [esi + 0x48], 2
je 0x402975
mov ecx, ebx
sub ecx, edi
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 0x18]
cmp eax, dword [esi + 4]
jle 0x402947
test byte [esi + 0xc8], 1
je 0x40292a
cmp dword [esi + 0xd0], 0
je 0x40292a
push ecx
push str._RO___ld_bytes
push 1
push esi
call fcn.00402cd0
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
test ecx, ecx
je 0x402942
push dword [esi + 0xb0]
mov eax, dword [esi + 0xcc]
push esi
push ecx
push edi
call eax
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov ebx, edi
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov word [ebx + 4], 0x54
mov word [ebx + 6], ax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov edi, dword [esi + 0x40]
cmp dword [esi + 0x38], edi
mov dword [esi + 0x48], 0
cmovbe edi, dword [esi + 0x38]
cmp dword [esi + 0xc0], 0
mov dword [ebp - 0x18], edi
jne 0x40299c
cmp dword [esi + 0x44], edi
cmovbe edi, dword [esi + 0x44]
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, edi
jns 0x402a4a
lea ebx, [esi + 0x84]
mov edx, dword [ebx]
cmp ebx, edx
je 0x402a47
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [esi + 0x98]
mov dword [edx + 4], eax
lea eax, [esi + 0x94]
mov dword [edx], eax
mov eax, dword [esi + 0x98]
mov dword [eax], edx
dec dword [esi + 0x68]
inc dword [esi + 0x60]
mov eax, dword [esi]
mov dword [esi + 0x98], edx
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov dword [edx + 0xc], 0x51
mov dword [edx + 0x18], ecx
mov eax, dword [esi + 0x14]
mov dword [edx + 0x1c], eax
inc dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [edx + 0x20], eax
mov dword [edx + 0x28], ecx
mov eax, dword [esi + 0x30]
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
sub eax, edi
js 0x4029b0
mov ebx, dword [ebp - 0xc]
mov eax, dword [esi + 0xb8]
or ecx, 0xffffffff
test eax, eax
cmovg ecx, eax
cmp dword [esi + 0x6c], 0
mov dword [ebp - 0x1c], ecx
jne 0x402a69
mov edx, dword [esi + 0x30]
sar edx, 3
jmp 0x402a6b
xor edx, edx
mov edi, dword [esi + 0x94]
lea eax, [esi + 0x94]
mov dword [ebp - 0x24], edx
cmp edi, eax
je 0x402c12
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x402aa0
mov dword [edi + 0x34], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x2c], eax
add eax, edx
add eax, dword [ebp - 8]
jmp 0x402b30
mov edx, dword [ebp - 8]
mov eax, edx
sub eax, dword [edi + 0x28]
js 0x402afd
lea eax, [ecx + 1]
mov dword [edi + 0x34], eax
inc dword [esi + 0x58]
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x402ad7
mov eax, dword [edi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 0x28], 1
cmovae ecx, eax
add ecx, eax
mov eax, ecx
mov dword [edi + 0x2c], ecx
add eax, edx
jmp 0x402b30
cmp eax, 2
jae 0x402ae1
mov eax, dword [edi + 0x2c]
jmp 0x402ae4
mov eax, dword [esi + 0x30]
cdq
sub eax, edx
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 8]
sar eax, 1
add dword [edi + 0x2c], eax
mov eax, dword [edi + 0x2c]
add eax, edx
jmp 0x402b30
mov eax, dword [ebp - 0x1c]
cmp dword [edi + 0x30], eax
jb 0x402bff
mov eax, dword [esi + 0xbc]
cmp ecx, eax
jle 0x402b1b
test eax, eax
jg 0x402bff
lea eax, [ecx + 1]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x2c]
add eax, edx
inc dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov ecx, ebx
mov dword [edi + 0x28], eax
sub ecx, edx
mov eax, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x24]
add eax, 0x18
mov dword [ebp - 0x2c], ecx
add eax, ecx
cmp eax, dword [esi + 4]
jle 0x402ba2
test byte [esi + 0xc8], 1
je 0x402b85
cmp dword [esi + 0xd0], 0
je 0x402b85
push ecx
push str._RO___ld_bytes
push 1
push esi
call fcn.00402cd0
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x402ba0
push dword [esi + 0xb0]
mov eax, dword [esi + 0xcc]
push esi
push ecx
push edx
call eax
mov edx, dword [ebp + 8]
add esp, 0x10
mov ebx, edx
mov eax, dword [edi + 8]
mov dword [ebx], eax
movzx eax, byte [edi + 0xc]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x10]
mov byte [ebx + 5], al
mov ax, word [edi + 0x14]
mov word [ebx + 6], ax
mov eax, dword [edi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x14], eax
add ebx, 0x18
mov eax, dword [edi + 0x24]
test eax, eax
je 0x402bf0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
call fcn.004155e0
add esp, 0xc
add ebx, dword [edi + 0x24]
mov eax, dword [edi + 0x34]
cmp eax, dword [esi + 0x7c]
jb 0x402bff
mov dword [esi + 0xc], 0xffffffff
mov edi, dword [edi]
lea eax, [esi + 0x94]
mov edx, dword [ebp - 0x24]
cmp edi, eax
jne 0x402a82
mov edi, dword [ebp + 8]
sub ebx, edi
test ebx, ebx
jle 0x402c52
test byte [esi + 0xc8], 1
je 0x402c3e
cmp dword [esi + 0xd0], 0
je 0x402c3e
push ebx
push str._RO___ld_bytes
push 1
push esi
call fcn.00402cd0
add esp, 0x10
push dword [esi + 0xb0]
mov eax, dword [esi + 0xcc]
push esi
push ebx
push edi
call eax
add esp, 0x10
cmp dword [ebp - 0x20], 0
mov edx, 2
je 0x402c81
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
shr eax, 1
cmp eax, edx
cmovb eax, edx
add ecx, eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
imul eax, ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x80], eax
cmp dword [ebp - 0x28], 0
je 0x402ca5
mov eax, dword [ebp - 0x18]
shr eax, 1
cmp eax, 2
mov dword [esi + 0x44], 1
cmovb eax, edx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x80], eax
cmp dword [esi + 0x44], 1
jae 0x402cbb
mov eax, dword [esi + 8]
mov dword [esi + 0x44], 1
mov dword [esi + 0x80], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret