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

Disassembly:
mov eax, dword [0x6729d4]
sub esp, 0x10
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x59d195
mov ebx, dword [esp + 0x24]
mov eax, dword [0x6d67a8]
cmp eax, dword [ebx]
jne 0x59d546
jmp 0x59d199
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov eax, dword [0xa23398]
xor ecx, ecx
mov edx, dword [edi + 4]
mov cx, word [edi + 4]
shr edx, 0x10
push ecx
mov ecx, dword [0xa23394]
push edx
push eax
push ecx
call fcn.004259d0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0045f7e0
mov ebp, dword [esp + 0x40]
xor eax, eax
add esp, 0x18
mov dword [esp + 0x14], 0
mov ax, word [ebp + 0xe]
add eax, ebp
mov dword [0xd12644], eax
cmp word [ebp + 0xc], 0
jbe 0x59d546
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x10], 0
add ecx, ebp
mov dword [0xd12650], ecx
cmp word [eax + 0x2a], 0
jbe 0x59d527
mov ecx, dword [esi + 0x30]
call fcn.0059c260
test eax, eax
mov dword [esi + 0x5c], eax
je 0x59d4f9
mov edx, dword [0xd12650]
mov cl, byte [edx + 0x59]
mov byte [eax + 0xa8], cl
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5a]
mov byte [edx + 0xa9], cl
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5b]
mov byte [edx + 0xaa], cl
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5c]
mov byte [edx + 0xab], cl
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 0x14]
add eax, 0x5c
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x9c], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5e]
mov byte [edx + 0xad], cl
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x90], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x90], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x8c], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x4c]
mov dword [edx + 0x94], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x84], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x88], ecx
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 0x2c]
add eax, 0x74
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x80], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 4]
mov dword [edx + 0x4c], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x58]
mov byte [edx + 0xa0], cl
mov edx, dword [0xd12650]
lea ecx, [edx + 8]
mov eax, dword [esi + 0x5c]
mov edx, dword [ecx]
add eax, 0x50
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cx, word [eax + 0x50]
mov word [edx + 0x98], cx
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 0x20]
add eax, 0x68
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5d]
mov byte [edx + 0xac], cl
mov eax, dword [0xd12650]
mov edx, dword [esi + 0x5c]
mov cx, word [eax + 0x76]
mov word [edx + 0xb0], cx
mov edx, dword [0xd12650]
mov ecx, dword [esi + 0x5c]
movzx ax, byte [edx + 0x7b]
mov word [ecx + 0xb2], ax
mov edx, dword [esi + 0x5c]
mov eax, dword [edi + 8]
xor ecx, ecx
mov dword [edx + 0x3c], eax
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
mov cl, byte [edx + 0x7a]
mov dword [eax + 0x12c], ecx
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
xor ecx, ecx
mov cl, byte [edx + 0x78]
mov dword [eax + 0x128], ecx
mov edx, dword [0xd12650]
mov eax, dword [esi + 0x5c]
xor ecx, ecx
mov cx, word [edx + 0x7c]
mov dword [eax + 0xb4], ecx
mov eax, dword [esi + 0x5c]
test byte [eax + 0xa0], 1
je 0x59d49c
mov dword [eax + 0xa4], ebx
mov edi, dword [ebx + 0x828]
mov ebp, dword [esi + 0x5c]
push 0xc
mov ebx, dword [edi + 4]
add ebp, 0xc
call fcn.00613321
add esp, 4
mov ecx, edi
test edi, edi
jne 0x59d467
mov ecx, eax
test ebx, ebx
mov dword [eax], ecx
jne 0x59d46f
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x59d486
mov edx, dword [ebp]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, eax
inc dword [eax + 0x82c]
jmp 0x59d4a6
mov dword [eax + 0xa4], 0
mov eax, dword [esp + 0x18]
mov edx, dword [0xa4f198]
mov ecx, dword [esi + 0x5c]
sub eax, edx
add eax, 0x170
mov dword [ecx + 0x30], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [0xa4f19c]
sub edx, eax
mov eax, dword [esi + 0x5c]
add edx, 0x1b2
mov dword [eax + 0x34], edx
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x10], 0
mov edx, dword [0x6d6790]
mov ecx, dword [esi + 0x5c]
push edx
call fcn.00599750
mov eax, dword [esi + 0x5c]
lea ecx, [esi + 0x18]
push eax
call fcn.00598040
mov ecx, dword [0xd12650]
mov eax, dword [0xd12644]
add ecx, 0x80
xor edx, edx
mov dword [0xd12650], ecx
mov ecx, dword [esp + 0x10]
mov dx, word [eax + 0x2a]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x59d219
mov ecx, dword [esp + 0x14]
add eax, 0x54
xor edx, edx
mov dword [0xd12644], eax
mov dx, word [ebp + 0xc]
inc ecx
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x59d1fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10