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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a73bb
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 0x5819fc
push eax
call fcn.00509a33
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 0x581a03
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 0x581a25
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 0x581a66
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 0x581a7f
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 0x581a98
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 0x581ab1
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.00584520
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 0x581d20
push 0x68
call fcn.00509a33
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x581c0c
mov edx, dword [ebp + 0x204]
mov ecx, eax
push edx
call fcn.0058ed50
jmp 0x581c0e
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 0x581cf8
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004ffef0
mov eax, dword [esi + 4]
add esp, 8
add eax, 4
mov dword [esi + 4], eax
jmp 0x581d05
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push eax
call fcn.00584260
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 0x581be2
lea eax, [ebx + 0xf4]
lea ecx, [ebp + 0xf4]
cmp eax, ecx
je 0x581d3c
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00403150
lea eax, [ebx + 0x100]
lea ecx, [ebp + 0x100]
cmp eax, ecx
je 0x581d58
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00403150
lea ecx, [ebp + 0x10c]
push ecx
lea ecx, [ebx + 0x10c]
call fcn.0047e560
mov eax, dword [ebp + 0x1fc]
test eax, eax
je 0x581d87
push eax
call fcn.005087f0
add esp, 4
mov dword [ebp + 0x1fc], 0
mov eax, dword [ebx + 0x200]
test eax, eax
mov dword [ebp + 0x200], eax
je 0x581dcf
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.00509a33
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