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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
test esi, esi
cmovs esi, eax
test ebx, ebx
cmovs ebx, eax
test ecx, ecx
mov dword [esp + 0x30], esi
cmovs ecx, eax
test edx, edx
mov dword [esp + 0x34], ebx
cmovns eax, edx
test edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
je 0x40b9f0
test byte [edi + 0x18], 0x30
je 0x40b9f0
mov esi, dword [esp + 0x74]
cmp dword [0x412034], esi
jle 0x40b9f0
mov edx, dword [esp + 0x78]
cmp dword [0x412030], edx
jle 0x40b9f0
cmp esi, ecx
jl 0x40b9f0
cmp edx, eax
jl 0x40b9f0
mov esi, edx
sub esi, eax
mov eax, dword [edi + 0xc]
lea edx, [esi + 1]
mov dword [esp + 0x3c], esi
sub eax, ebx
cmp eax, edx
cmovg eax, edx
cmp dword [esp + 0x74], ecx
jl 0x40b963
shl eax, 2
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x74]
lea esi, [edx*4]
shl eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
shl eax, 2
mov dword [esp + 0x28], eax
mov eax, edx
sub eax, ebx
lea eax, [eax + ecx + 1]
mov dword [esp + 0x18], eax
mov eax, ebx
mov ebx, edx
sub eax, edx
shl eax, 2
mov dword [esp + 0x2c], eax
jmp 0x40b8d0
add ebx, 1
add esi, 4
cmp ebx, dword [esp + 0x18]
je 0x40b963
cmp dword [edi + 8], ebx
jle 0x40b8c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x2c]
lea ebp, [esi + eax]
mov eax, dword [0x41203c]
mov eax, dword [eax + 0x2c]
add ecx, dword [eax + ebp]
mov eax, ecx
mov ecx, dword [esp + 0x24]
add ecx, dword [edx + esi]
mov dword [esp], eax
mov edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym._memcpy
mov eax, dword [0x41203c]
mov ecx, dword [eax + 0x30]
add ecx, ebp
mov edx, dword [ecx]
cmp edx, 0xffffffff
je 0x40b9e4
cmp edx, dword [esp + 0x1c]
jg 0x40b9e4
add ebp, dword [eax + 0x34]
mov eax, dword [ebp]
cmp dword [esp + 0x78], eax
jle 0x40b93f
mov eax, dword [esp + 0x78]
mov dword [ebp], eax
mov eax, dword [edi + 0x30]
add ebx, 1
mov dword [eax + esi], 0xffffffff
mov eax, dword [edi + 0x34]
mov dword [eax + esi], 0xffffffff
add esi, 4
cmp ebx, dword [esp + 0x18]
jne 0x40b8d0
cmp byte [edi + 0x24], 0
je 0x40b976
mov eax, dword [0x41203c]
mov byte [edi + 0x24], 0
mov byte [eax + 0x24], 1
cmp byte [edi + 0x25], 0
jne 0x40b9b0
mov edx, dword [edi]
cmp edx, dword [esp + 0x30]
jl 0x40b9b0
mov ecx, dword [edi + 4]
cmp ecx, dword [esp + 0x34]
jl 0x40b9b0
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x38]
add eax, dword [esp + 0x30]
cmp edx, eax
jg 0x40b9b0
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x34]
cmp ecx, eax
jle 0x40b9fd
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x64], eax
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
jmp 0x40b92c
add esp, 0x4c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ebx, dword [0x41203c]
sub ecx, dword [esp + 0x34]
add eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [ebx + 4], eax
jmp 0x40b9b0