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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push edi
push esi
push ebx
push 0x300
push 0
lea eax, [ebp - 0x344]
push eax
call fcn.00409598
add esp, 0xc
push 0x300
push 0
lea eax, [ebp - 0x648]
push eax
call fcn.00409598
add esp, 0xc
push 0x14
push 0
lea eax, [ebp - 0x660]
push eax
call fcn.00409598
add esp, 0xc
lea eax, [ebp - 0x648]
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x344]
mov dword [ebp - 0x348], eax
lea esi, [ebp - 0x30]
push esi
call fcn.004095b0
add esi, 0x10
push esi
call fcn.004095b0
push 0x515bf7
call fcn.004094ea
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
add esi, dword [esi + 0x3c]
lea esi, [esi + 0x78]
mov esi, dword [esi]
add esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x38], eax
mov ebx, dword [esi + 0x24]
add ebx, dword [ebp - 0x34]
mov edi, dword [esi + 0x20]
add edi, dword [ebp - 0x34]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0x28
push 0x515bf7
call fcn.00409586
add dword [ebp - 0x44], eax
add dword [ebp - 0x44], 0xa
push 0x515bf7
push dword [ebp - 0x348]
call fcn.0040957a
push 0x515bf7
call fcn.00409586
add dword [ebp - 0x348], eax
add dword [ebp - 0x348], 2
lea ecx, [ebp - 0x30]
add ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
xor edx, edx
mov ecx, dword [ebp - 0x38]
div ecx
shl edx, 2
mov ecx, edx
add edx, edi
add ecx, ebx
mov esi, dword [edx]
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x348]
mov edx, dword [ebp - 0x64c]
mov dword [edx], eax
push eax
lea eax, [ebp - 0x344]
sub dword [edx], eax
pop eax
add dword [ebp - 0x64c], 4
movzx ecx, word [ecx + 2]
mov word [eax], cx
add dword [ebp - 0x348], 2
push esi
push dword [ebp - 0x348]
call fcn.0040957a
push esi
call fcn.00409586
mov dword [ebp - 0x3c], eax
add dword [ebp - 0x348], eax
add dword [ebp - 0x348], 2
add dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x44], eax
inc dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x140
jbe 0x403fec
jmp 0x403ff1
jmp 0x403f68
inc dword [ebp - 0x40]
lea edi, [ebp - 0x648]
mov ebx, dword [ebp - 0x40]
shl ebx, 3
add ebx, 0x28
mov esi, dword [ebp - 0x40]
dec esi
jmp 0x40400f
add dword [edi], ebx
add edi, 4
dec esi
or esi, esi
jne 0x404009
lea edi, [ebp - 0x660]
mov eax, 0x28
mov dword [edi], eax
mov ebx, dword [ebp - 0x40]
shl ebx, 2
add eax, ebx
mov dword [edi + 0x10], eax
add eax, ebx
mov dword [edi + 0xc], eax
mov edi, dword [ebp + 8]
push 0x14
lea eax, [ebp - 0x660]
push eax
push edi
call fcn.0040e8ff
add edi, 0x14
add edi, 0x14
mov ebx, dword [ebp - 0x40]
shl ebx, 2
push ebx
lea eax, [ebp - 0x648]
push eax
push edi
call fcn.0040e8ff
add edi, ebx
push ebx
lea eax, [ebp - 0x648]
push eax
push edi
call fcn.0040e8ff
add edi, ebx
mov ebx, dword [ebp - 0x348]
lea eax, [ebp - 0x344]
sub ebx, eax
push ebx
lea eax, [ebp - 0x344]
push eax
push edi
call fcn.0040e8ff
add edi, ebx
mov ecx, dword [ebp + 0xc]
sub edi, dword [ebp + 8]
mov dword [ecx], edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
lea ecx, [edx + esi]
jmp 0x4040a6
add dword [ecx], ebx
add ecx, 4
cmp dword [ecx], 0
jne 0x4040a1
mov edx, dword [esi + 0x10]
lea ecx, [edx + esi]
jmp 0x4040b8
add dword [ecx], ebx
add ecx, 4
cmp dword [ecx], 0
jne 0x4040b3
add dword [esi + 0x10], ebx
add dword [esi + 0xc], ebx
add dword [esi], ebx
pop ebx
pop esi
pop edi
leave
ret 0xc