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

Disassembly:
push 0xffffffffffffffff
push 0x510900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
xor edi, edi
xor eax, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x28], 0x51ed60
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 4]
or ebx, 0xffffffff
mov dword [esp + 0x80], 1
mov dword [esp + 0x10], ebx
mov esi, dword [ecx + 8]
cmp esi, 1
mov dword [esp + 0x18], esi
jne 0x59bf59
mov al, byte [esp + 0x94]
test al, al
jne 0x59bee5
mov eax, dword [ecx + 4]
mov esi, dword [esp + 0x88]
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0059c19c
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebp + 4]
mov eax, dword [edx + 4]
mov edx, dword [ecx + 4]
imul eax, dword [esp + 0x98]
mov ecx, dword [edx]
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x2c], edi
call fcn.0059c19c
jmp 0x59c154
mov al, byte [esp + 0x90]
test al, al
jne 0x59c154
mov edx, dword [ecx + 4]
mov esi, dword [esp + 0x88]
lea ecx, [esp + 0x1c]
mov eax, dword [edx + 4]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
call fcn.0059c19c
mov edx, dword [ebp + 4]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x8c]
mov ecx, dword [eax + 4]
mov eax, dword [edx]
imul eax, dword [esp + 0x98]
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
push ecx
push eax
mov ecx, esi
call fcn.0059c19c
jmp 0x59c154
cmp esi, edi
mov dword [esp + 0x90], edi
jl 0x59c154
mov ebx, dword [esp + 0x88]
xor edx, edx
mov dword [esp + 0x8c], edx
cmp edi, esi
jge 0x59bf9b
mov ecx, dword [ebp + 4]
mov ecx, dword [ecx + 4]
add ecx, edx
mov ecx, dword [ecx + 8]
cmp ecx, 0xffffffff
jne 0x59bf92
mov ecx, dword [0x555704]
mov dword [esp + 0x94], ecx
jmp 0x59bfa6
mov dword [esp + 0x94], 0xffffffff
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x94], ecx
je 0x59c0f4
cmp edi, esi
jge 0x59bfe6
mov ecx, dword [ebp + 4]
mov edi, eax
push 0xffffffffffffffff
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x2c]
add esi, edx
inc eax
push eax
call fcn.00593dfc
mov eax, dword [esp + 0x2c]
lea edx, [edi + edi*2]
push esi
lea ecx, [eax + edx*4]
call fcn.00552f7c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
sub ecx, 0
je 0x59c088
dec ecx
jne 0x59c0c6
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.0059b0cc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 2
call fcn.0059b23c
test al, al
je 0x59c033
mov edx, dword [esp + 0x98]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0059b5cc
mov esi, dword [ebx + 8]
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
lea edx, [esi + ecx]
mov ecx, ebx
push edx
call fcn.00593dfc
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x2c]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x59c075
lea ebp, [eax]
mov eax, edi
mov ecx, esi
push eax
add edi, 0xc
add esi, 0xc
call fcn.00552f7c
dec ebp
jne 0x59c05e
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.0059b20c
jmp 0x59c0c6
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [esi + eax]
push edx
call fcn.00593dfc
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x2c]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x59c0c6
lea ebp, [eax]
mov eax, edi
mov ecx, esi
push eax
add edi, 0xc
add esi, 0xc
call fcn.00552f7c
dec ebp
jne 0x59c0af
mov ebp, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.00593dfc
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x8c]
cmp edi, esi
jge 0x59c123
mov ecx, dword [ebp + 4]
mov edi, eax
push 0xffffffffffffffff
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x2c]
add esi, edx
inc eax
push eax
call fcn.00593dfc
mov eax, dword [esp + 0x2c]
lea edx, [edi + edi*2]
push esi
lea ecx, [eax + edx*4]
call fcn.00552f7c
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x18]
inc edi
add edx, 0xc
cmp edi, esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edx
jle 0x59bf7a
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x80], ebx
mov dword [esp + 0x28], 0x51ed60
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], 3
cmp eax, edi
je 0x59c17f
push eax
call fcn.0060c2ba
add esp, 4
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword [esp + 0x78], ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0x14