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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x19c]
xor eax, eax
cmp dword [edi + 0x78], eax
mov dword [esp + 0x14], ecx
jne 0x581ed5
cmp ecx, eax
jne 0x581ed5
mov dword [esp + 0x10], eax
jmp 0x581ee0
mov edx, dword [esi + 0x10]
movzx edx, word [edx + ecx*2]
mov dword [esp + 0x10], edx
lea edx, [ecx + ecx*2]
lea ebx, [edi + edx*8 + 0x3034]
lea edx, [ecx + ecx*4]
lea edx, [esi + edx*4 + 0x1e4]
mov dword [edi + 0x2118], 0xd
mov ebp, dword [esi + 0x1dc]
mov dword [esp + 0x24], edx
mov dword [edx], ebp
add edx, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
add esi, 0x478
jmp 0x581f28
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov ebp, eax
and ebp, reloc.intfd.dll_Ordinal_1
jns 0x581f37
dec ebp
or ebp, 0xfffffffe
inc ebp
mov dword [esi - 8], 3
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0xc]
mov dword [esi - 4], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 4], ecx
mov dword [esi], edx
mov ecx, dword [edi + 0x36b4]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x36b8]
mov dword [esi + 0x34], edx
mov edx, dword [edi + 0x3008]
sar eax, 1
mov ecx, eax
shl ecx, 4
add ecx, ebp
lea ecx, [edx + ecx*8]
mov dword [esi + 0x20], ecx
lea ecx, [eax*8]
mov dword [esp + 0x28], ecx
sar ecx, 1
mov dword [esp + 0x1c], ecx
shl ecx, 4
lea edx, [ebp*8]
sar edx, 1
add ecx, edx
mov dword [esp + 0x20], edx
mov edx, dword [edi + 0x300c]
add edx, ecx
mov dword [esi + 0x24], edx
mov edx, dword [edi + 0x3010]
add edx, ecx
mov ecx, dword [esi + 0x30]
imul ecx, eax
mov dword [esi + 0x28], edx
mov edx, dword [ebx]
lea eax, [ecx + ebp]
lea ecx, [eax*8]
add edx, ecx
mov dword [esi + 8], edx
mov edx, dword [ebx + 4]
add edx, ecx
mov dword [esi + 0xc], edx
mov edx, dword [ebx + 8]
add edx, ecx
mov dword [esi + 0x10], edx
mov edx, dword [ebx + 0xc]
add edx, ecx
mov ecx, dword [esi + 0x34]
imul ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x20]
add ecx, edx
mov edx, dword [ebx + 0x10]
add edx, ecx
mov dword [esi + 0x18], edx
mov edx, dword [ebx + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x14]
shl eax, 4
mov dword [esi + 0x1c], edx
add eax, dword [edi + ecx*4 + 0x3634]
lea edx, [esi + 0x38]
push edx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
push 2
lea ecx, [eax*4]
push ecx
push 0
push edi
call fcn.00566900
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
add eax, 1
push 0
push eax
mov dword [esp + 0x3c], eax
push edx
lea eax, [esi - 8]
push eax
push edi
call fcn.005ad0e0
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x44]
add esp, 0x28
add eax, ebp
lea eax, [edi + eax*8 + 0x37b0]
mov edx, 2
mov dword [eax], ecx
mov dword [eax + 4], ecx
add eax, 0x20
sub edx, 1
jne 0x582061
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [ecx], edx
add dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], edx
add ecx, 4
add esi, 0x50
cmp eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
jl 0x581f20
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x5a8]
add eax, dword [ecx + 0x558]
mov edx, dword [ecx + 0x4b8]
add eax, dword [ecx + 0x508]
pop esi
add eax, edx
mov dword [ecx + 0x1e0], eax
cmp dword [edi + 0x78], 0
pop ebp
pop ebx
je 0x5820de
sub eax, dword [esp + 4]
mov dword [ecx + 0x1e0], eax
mov byte [edi + 0x211f], 3
mov byte [edi + 0x211e], 3
mov byte [edi + 0x211d], 3
mov byte [edi + 0x211c], 3
add esp, 0x20
ret