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

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x34
mov eax, 0x684658
call fcn.00645482
mov eax, dword [ebp + 0x80]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x84]
mov esi, ecx
push eax
mov dword [ebp - 0x40], esi
call fcn.00401bcc
xor ebx, ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
mov byte [esi + 0x1c], bl
call fcn.004189d5
lea ecx, [esi + 0x3c]
call fcn.004189d5
lea edi, [esi + 0x58]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
lea eax, [esi + 0x78]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ecx, 0x82cf00
mov byte [ebp - 4], 5
call fcn.00403335
mov dword [ebp - 0x28], eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
xor eax, eax
inc eax
cmp dword [ebp + 0x7c], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], eax
jle 0x5169c3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
push dword [eax + ecx*4]
lea ecx, [ebp + 0x1c]
call fcn.00401baa
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], 0xf
call fcn.00402c9d
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], 0xf
call fcn.00402c9d
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0051645a
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
jae 0x51694b
lea eax, [ebp + 0x58]
push str.utf8
push eax
call fcn.0064e2a0
test eax, eax
pop ecx
pop ecx
jne 0x516962
mov byte [ebp - 0xd], 1
jmp 0x51698f
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
jae 0x51696e
lea eax, [ebp + 0x58]
push 0x6f1558
push eax
call fcn.0064e2a0
test eax, eax
pop ecx
pop ecx
jne 0x516983
mov byte [ebp - 0xd], 1
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046a06e
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.0040234a
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040234a
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 6
call fcn.0040234a
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x7c]
jl 0x5168f7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ebx
call fcn.0050a2f1
test eax, eax
jbe 0x516b6a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00466b5d
push eax
lea ecx, [ebp + 0x54]
call fcn.00401bcc
lea eax, [ebp + 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00515ef5
test al, al
je 0x516a2b
cmp dword [ebp + 0x6c], 0x10
mov ecx, dword [ebp + 0x58]
jae 0x516a09
lea ecx, [ebp + 0x58]
mov eax, dword [esi + 0x14]
add ecx, eax
push ecx
lea ecx, [ebp + 0x38]
call fcn.00401baa
lea eax, [ebp + 0x38]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0051664b
jmp 0x516b00
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call fcn.00401bcc
cmp byte [ebp - 0xd], bl
jne 0x516a80
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
mov byte [ebp - 4], 0xd
jae 0x516a58
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.00515ed6
lea ecx, [ebp - 0x24]
call fcn.004138a9
push eax
lea ecx, [ebp + 0x38]
call fcn.004022c7
cmp byte [ebp - 0x24], bl
je 0x516a80
push dword [ebp - 0x20]
call fcn.0040b57b
pop ecx
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.00402c9d
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.00402c9d
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0051645a
mov ecx, dword [ebp - 0x28]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
call fcn.005065d2
cmp eax, ebx
jne 0x516ad3
lea eax, [ebp + 0x54]
lea ecx, [esi + 0x68]
jmp 0x516add
cmp eax, 2
jne 0x516ae5
lea eax, [ebp + 0x38]
mov ecx, edi
push eax
call fcn.0046a06e
jmp 0x516aea
cmp eax, 1
je 0x516b30
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040234a
push ebx
push 1
lea ecx, [ebp]
call fcn.0040234a
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.0040234a
push ebx
push 1
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 6
call fcn.0040234a
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.0050a2f1
cmp dword [ebp - 0x14], eax
jb 0x5169d6
jmp 0x516b6a
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
lea ecx, [esi + 0x20]
call fcn.00402235
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040234a
push ebx
push edi
lea ecx, [ebp]
call fcn.0040234a
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040234a
push ebx
push edi
lea ecx, [ebp + 0x54]
call fcn.0040234a
lea ecx, [ebp - 0x38]
call fcn.00419a9c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00644f58
add ebp, 0x74
leave
ret 0xc