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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a66fb
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, ecx
mov eax, dword [ebx + 4]
push esi
mov dword [ebp + 4], eax
mov ecx, dword [ebx + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebx + 0x1c]
mov dword [ebp + 0x1c], edx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x24], ecx
mov dl, byte [ebx + 0x28]
mov byte [ebp + 0x28], dl
mov al, byte [ebx + 0x29]
mov byte [ebp + 0x29], al
mov eax, dword [ebx + 0x2c]
test eax, eax
push edi
mov dword [ebp + 0x2c], eax
je 0x580dcc
push eax
call fcn.00508b18
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x30], eax
mov esi, dword [ebx + 0x30]
mov edx, ecx
mov edi, eax
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x580dd3
mov dword [ebp + 0x30], 0
mov eax, dword [ebx + 0x34]
lea edx, [ebx + 0x38]
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x38]
mov esi, 0xfffffffc
lea ecx, [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, edx
sub ecx, eax
sub esi, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov cl, byte [ecx + edi]
mov byte [edi], cl
inc edi
mov dword [esp + 0x14], edi
lea ecx, [esi + edi]
cmp ecx, 0x10
jb 0x580df5
lea esi, [edx + 0x14]
lea edi, [eax + 0x14]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x3c]
mov esi, 3
mov dword [eax + 0x3c], ecx
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax + 0x44], ecx
lea ecx, [eax + 0x48]
mov edi, dword [esp + 0x10]
add ecx, 4
dec esi
mov edi, dword [ecx + edi - 4]
mov dword [ecx - 4], edi
jne 0x580e36
lea ecx, [eax + 0x54]
mov esi, 3
mov edi, dword [esp + 0x10]
add ecx, 4
dec esi
mov edi, dword [ecx + edi - 4]
mov dword [ecx - 4], edi
jne 0x580e4f
lea ecx, [eax + 0x60]
mov esi, 3
mov edi, dword [esp + 0x10]
add ecx, 4
dec esi
mov edi, dword [ecx + edi - 4]
mov dword [ecx - 4], edi
jne 0x580e68
lea ecx, [eax + 0x6c]
mov esi, 3
mov edi, dword [esp + 0x10]
add ecx, 4
dec esi
mov edi, dword [ecx + edi - 4]
mov dword [ecx - 4], edi
jne 0x580e81
mov ecx, dword [edx + 0x78]
lea esi, [ebp + 0xe8]
mov dword [eax + 0x78], ecx
mov ecx, dword [edx + 0x7c]
mov dword [eax + 0x7c], ecx
mov ecx, dword [edx + 0x80]
mov dword [eax + 0x80], ecx
mov ecx, dword [edx + 0x84]
mov dword [eax + 0x84], ecx
mov cl, byte [edx + 0x88]
mov byte [eax + 0x88], cl
mov cl, byte [edx + 0x89]
mov byte [eax + 0x89], cl
mov cl, byte [edx + 0x8a]
mov byte [eax + 0x8a], cl
mov cl, byte [edx + 0x8b]
mov byte [eax + 0x8b], cl
mov cl, byte [edx + 0x8c]
mov byte [eax + 0x8c], cl
mov cl, byte [edx + 0x8d]
mov byte [eax + 0x8d], cl
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x90], ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x94], ecx
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x98], ecx
mov ecx, dword [edx + 0x9c]
mov dword [eax + 0x9c], ecx
mov ecx, dword [edx + 0xa0]
mov dword [eax + 0xa0], ecx
mov ecx, dword [edx + 0xa4]
mov dword [eax + 0xa4], ecx
mov edx, dword [edx + 0xa8]
mov dword [eax + 0xa8], edx
mov eax, dword [ebp + 0x204]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], 0
mov ecx, dword [ebx + 0xe4]
mov dword [ebp + 0xe4], ecx
mov eax, dword [esi]
mov edi, dword [esi + 4]
push eax
push edi
push edi
mov dword [esp + 0x1c], eax
call fcn.004a8b00
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
sub edi, edx
add esp, 0xc
sar edi, 2
neg edi
shl edi, 2
add ecx, edi
xor edi, edi
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xe4]
test eax, eax
mov dword [esp + 0x10], edi
jle 0x5810f0
push 0x68
call fcn.00508b18
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x580fdc
mov edx, dword [ebp + 0x204]
mov ecx, eax
push edx
call fcn.0058e150
jmp 0x580fde
xor eax, eax
mov ecx, dword [ebx + 0xe8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [ecx + edi*4]
lea edi, [eax + 0x24]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
lea edx, [ecx + 0x24]
mov ebx, dword [ecx + 0x24]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
lea edx, [ecx + 0x30]
lea edi, [eax + 0x30]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
lea edx, [ecx + 0x40]
lea edi, [eax + 0x40]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
lea edx, [ecx + 0x4c]
lea edi, [eax + 0x4c]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0x64], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x204]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x5810c8
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004a8e30
mov eax, dword [esi + 4]
add esp, 8
add eax, 4
mov dword [esi + 4], eax
jmp 0x5810d5
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.00583630
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0xe4]
mov ebx, dword [esp + 0x2c]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x580fb2
lea eax, [ebx + 0xf4]
lea ecx, [ebp + 0xf4]
cmp eax, ecx
je 0x58110c
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00403200
lea eax, [ebx + 0x100]
lea ecx, [ebp + 0x100]
cmp eax, ecx
je 0x581128
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00403200
lea ecx, [ebp + 0x10c]
push ecx
lea ecx, [ebx + 0x10c]
call fcn.0047de90
mov eax, dword [ebp + 0x1fc]
test eax, eax
je 0x581157
push eax
call fcn.00507830
add esp, 4
mov dword [ebp + 0x1fc], 0
mov eax, dword [ebx + 0x200]
test eax, eax
mov dword [ebp + 0x200], eax
je 0x58119f
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.00508b18
mov dword [ebp + 0x1fc], eax
mov ebp, dword [ebp + 0x200]
mov esi, dword [ebx + 0x1fc]
mov edi, eax
lea ecx, [ebp + ebp*2]
add esp, 4
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4