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

Disassembly:
push 0xffffffffffffffff
push 0x5d0c03
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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.0040b160
push 1
push 2
lea ecx, [esp + 0xe0]
mov dword [esp + 0x264], 1
call fcn.0040b160
push edi
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x260], 2
call fcn.00592260
cmp dword [esp + 0x220], edi
mov byte [esp + 0x25c], 3
lea ebp, [edi + 0x10]
jbe 0x515928
mov eax, dword [esp + 0x21c]
mov esi, dword [eax]
cmp esi, eax
jne 0x5157a6
call fcn.005b0913
lea eax, [esi + 8]
push 0x62a35c
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
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.005924e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 5
call fcn.00592b00
lea edx, [esp + 0x1d8]
push edx
push 0x5f4a64
push 0x5f4a28
lea ecx, [esp + 0x24]
call fcn.00592620
push ebx
push 0
push str.__t_r_n
lea ecx, [esp + 0x1e4]
call fcn.0049f800
push eax
push 0
lea ecx, [esp + 0x1e0]
call fcn.00408170
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x1e8]
call fcn.004ca3c0
add eax, 1
push eax
lea ecx, [esp + 0x1e0]
call fcn.00408170
cmp dword [esp + 0x1ec], 0
je 0x5158e0
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x51588d
lea eax, [esp + 0x1dc]
push 0x5f4a20
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x5158e0
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x5158b6
lea eax, [esp + 0x1dc]
push 0x5f4a18
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x5158e0
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00409360
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x25c], bl
je 0x5158f7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x515907
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x1f0], ebp
mov byte [esp + 0x25c], 3
jb 0x515928
mov eax, dword [esp + 0x1dc]
push eax
call fcn.00594e98
add esp, 4
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.0050fb60
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 6
call fcn.00513a90
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx]
mov bl, 7
cmp edi, dword [esp + 0x28]
je 0x515b3d
mov edx, dword [edi + 8]
cmp dword [edx + 0x94], 0
je 0x515b2b
push 1
push 2
lea ecx, [esp + 0x60]
call fcn.0040b160
cmp edi, dword [esp + 0x28]
mov byte [esp + 0x25c], bl
jne 0x515989
call fcn.005b0913
mov eax, dword [edi + 8]
push 1
add eax, 0x78
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0050d410
add esp, 0xc
mov esi, eax
lea edx, [esp + 0x1d8]
push edx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x260], 8
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 9
jb 0x5159cf
mov eax, dword [eax + 4]
jmp 0x5159d2
add eax, 4
push esi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409360
add esp, 8
cmp dword [esp + 0x1f0], ebp
jb 0x515a03
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.00594e98
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 0x515a3b
mov edx, dword [esp + 0x40]
push edx
call fcn.00594e98
add esp, 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xa
jb 0x515a5b
mov eax, dword [eax + 4]
jmp 0x515a5e
add eax, 4
push eax
call fcn.004fad20
add esp, 4
cmp dword [esp + 0x54], ebp
mov esi, eax
mov byte [esp + 0x25c], bl
jb 0x515a83
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00594e98
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xb
jb 0x515aa3
mov eax, dword [eax + 4]
jmp 0x515aa6
add eax, 4
push 0x62a35c
push esi
push 0x5f4a14
push 0x62a35c
push eax
lea eax, [esp + 0x16c]
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.0041c060
push eax
call fcn.00409c80
add esp, 8
cmp dword [esp + 0x54], ebp
jb 0x515afc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x25c], 6
call fcn.00409f20
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
cmp edi, dword [esp + 0x28]
jne 0x515b36
call fcn.005b0913
mov edi, dword [edi]
jmp 0x515950
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x15c]
call fcn.00409610
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xc
jb 0x515b63
mov ecx, dword [eax + 4]
jmp 0x515b66
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 0x515b80
mov edi, dword [esp + 0x14]
sub eax, esi
push eax
push ecx
mov ecx, edi
call fcn.004098b0
cmp dword [esp + 0x1f0], ebp
mov dword [esp + 0x38], 1
jb 0x515bb9
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.00594e98
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.004151b0
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 0x515c18
mov esi, dword [eax]
push eax
call fcn.00594e98
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x515c03
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x28], ebx
call fcn.004cafe0
lea ecx, [esp + 0x124]
mov byte [esp + 0x25c], 1
call fcn.00409f20
lea eax, [esp + 0x124]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0x128], esi
call fcn.005cccbe
add esp, 4
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x25c], 0
call fcn.00409f20
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x1a8], esi
call fcn.005cccbe
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.005b0968
add esp, 0x24c
ret