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

Disassembly:
push 0xffffffffffffffff
push 0x5d1c23
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
push 1
xor edi, edi
push 2
lea ecx, [esp + 0x160]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], edi
call fcn.0040b040
push 1
push 2
lea ecx, [esp + 0xe0]
mov dword [esp + 0x264], 1
call fcn.0040b040
push edi
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x260], 2
call fcn.00593280
cmp dword [esp + 0x220], edi
mov byte [esp + 0x25c], 3
lea ebp, [edi + 0x10]
jbe 0x516958
mov eax, dword [esp + 0x21c]
mov esi, dword [eax]
cmp esi, eax
jne 0x5167d6
call fcn.005b1933
lea eax, [esi + 8]
push 0x62b4bc
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov dword [esp + 0x1f0], 0xf
mov dword [esp + 0x1ec], edi
mov byte [esp + 0x1dc], 0
mov ebx, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], bl
call fcn.00593500
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 5
call fcn.00593b20
lea edx, [esp + 0x1d8]
push edx
push 0x5f5a64
push 0x5f5a28
lea ecx, [esp + 0x24]
call fcn.00593640
push ebx
push 0
push str.__t_r_n
lea ecx, [esp + 0x1e4]
call fcn.0049f210
push eax
push 0
lea ecx, [esp + 0x1e0]
call fcn.00407f00
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x1e8]
call fcn.004ca290
add eax, 1
push eax
lea ecx, [esp + 0x1e0]
call fcn.00407f00
cmp dword [esp + 0x1ec], 0
je 0x516910
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x5168bd
lea eax, [esp + 0x1dc]
push 0x5f5a20
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x516910
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x5168e6
lea eax, [esp + 0x1dc]
push 0x5f5a18
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x516910
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00409240
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x25c], bl
je 0x516927
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x516937
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x1f0], ebp
mov byte [esp + 0x25c], 3
jb 0x516958
mov eax, dword [esp + 0x1dc]
push eax
call fcn.00595eb8
add esp, 4
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.00510b90
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 6
call fcn.00514ac0
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx]
mov bl, 7
cmp edi, dword [esp + 0x28]
je 0x516b6d
mov edx, dword [edi + 8]
cmp dword [edx + 0x94], 0
je 0x516b5b
push 1
push 2
lea ecx, [esp + 0x60]
call fcn.0040b040
cmp edi, dword [esp + 0x28]
mov byte [esp + 0x25c], bl
jne 0x5169b9
call fcn.005b1933
mov eax, dword [edi + 8]
push 1
add eax, 0x78
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0050e440
add esp, 0xc
mov esi, eax
lea edx, [esp + 0x1d8]
push edx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x260], 8
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 9
jb 0x5169ff
mov eax, dword [eax + 4]
jmp 0x516a02
add eax, 4
push esi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
cmp dword [esp + 0x1f0], ebp
jb 0x516a33
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x1f0], 0xf
mov dword [esp + 0x1ec], 0
mov byte [esp + 0x1dc], 0
mov byte [esp + 0x25c], bl
jb 0x516a6b
mov edx, dword [esp + 0x40]
push edx
call fcn.00595eb8
add esp, 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xa
jb 0x516a8b
mov eax, dword [eax + 4]
jmp 0x516a8e
add eax, 4
push eax
call fcn.004fbd40
add esp, 4
cmp dword [esp + 0x54], ebp
mov esi, eax
mov byte [esp + 0x25c], bl
jb 0x516ab3
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00595eb8
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xb
jb 0x516ad3
mov eax, dword [eax + 4]
jmp 0x516ad6
add eax, 4
push 0x62b4bc
push esi
push 0x5f5a14
push 0x62b4bc
push eax
lea eax, [esp + 0x16c]
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.0041ca40
push eax
call fcn.00409b60
add esp, 8
cmp dword [esp + 0x54], ebp
jb 0x516b2c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x25c], 6
call fcn.00409e00
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
cmp edi, dword [esp + 0x28]
jne 0x516b66
call fcn.005b1933
mov edi, dword [edi]
jmp 0x516980
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x15c]
call fcn.004094f0
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xc
jb 0x516b93
mov ecx, dword [eax + 4]
jmp 0x516b96
lea ecx, [eax + 4]
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x516bb0
mov edi, dword [esp + 0x14]
sub eax, esi
push eax
push ecx
mov ecx, edi
call fcn.00409790
cmp dword [esp + 0x1f0], ebp
mov dword [esp + 0x38], 1
jb 0x516be9
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.00595eb8
add esp, 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1f4], 0xf
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x24], vtable.BaseLib::TPointerContainer_class_std::list_struct_BaseLib::_tag_ethernet_adapter___class_std::allocator_struct_BaseLib::_tag_ethernet_adapter____.0
call fcn.00415b70
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x2c], ebx
je 0x516c48
mov esi, dword [eax]
push eax
call fcn.00595eb8
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x516c33
push ecx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x28], ebx
call fcn.004cb470
lea ecx, [esp + 0x124]
mov byte [esp + 0x25c], 1
call fcn.00409e00
lea eax, [esp + 0x124]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0x128], esi
call fcn.005cdcde
add esp, 4
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x25c], 0
call fcn.00409e00
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x1a8], esi
call fcn.005cdcde
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005b1988
add esp, 0x24c
ret