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

Disassembly:
push 0xffffffffffffffff
push 0x5d166d
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x67c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x694]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x6a4]
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x254], 0xf
mov dword [esp + 0x250], esi
mov byte [esp + 0x240], 0
push 1
push 2
lea ecx, [esp + 0x144]
mov dword [esp + 0x6a4], esi
call fcn.0040b040
push str.Connection
lea eax, [ebx + 0x3c]
push eax
lea ecx, [esp + 0x144]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
push ecx
mov byte [esp + 0x6ac], 1
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
push 0x3ff
lea edx, [esp + 0x29d]
push esi
push edx
mov byte [esp + 0x2a4], 0
call fcn.005b5540
add esp, 0x14
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], 0x400
call fcn.004094f0
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [esp + 0x69c], 2
jb 0x512b28
mov eax, dword [eax + 4]
jmp 0x512b2b
add eax, 4
push 1
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x298]
push edx
lea ecx, [esp + 0x7c]
push ecx
push 0x5f5600
push eax
push reloc.WS2_32.dll_bind
call fcn.004fff40
add esp, 0x1c
cmp dword [esp + 0x68], edi
mov byte [esp + 0x69c], 1
jb 0x512b6d
mov edx, dword [esp + 0x54]
push edx
call fcn.00595eb8
add esp, 4
lea eax, [esp + 0x290]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x512b77
sub eax, edx
push eax
lea eax, [esp + 0x294]
push eax
lea ecx, [esp + 0x244]
call fcn.00409790
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov eax, dword [ebx + 0x9c]
mov edi, dword [eax]
lea esi, [ebx + 0x98]
mov byte [esp + 0x69c], 5
cmp esi, esi
mov ebp, dword [esi + 4]
je 0x512bdd
call fcn.005b1933
cmp edi, ebp
je 0x512c06
cmp edi, dword [esi + 4]
jne 0x512beb
call fcn.005b1933
lea ecx, [edi + 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004afdc0
cmp edi, dword [esi + 4]
jne 0x512c02
call fcn.005b1933
mov edi, dword [edi]
jmp 0x512bd1
mov eax, dword [ebx + 0xb4]
mov edi, dword [eax]
lea esi, [ebx + 0xb0]
cmp esi, esi
mov ebp, dword [esi + 4]
je 0x512c20
call fcn.005b1933
cmp edi, ebp
je 0x512c49
cmp edi, dword [esi + 4]
jne 0x512c2e
call fcn.005b1933
lea edx, [edi + 8]
push edx
lea ecx, [esp + 0x3c]
call fcn.004afdc0
cmp edi, dword [esi + 4]
jne 0x512c45
call fcn.005b1933
mov edi, dword [edi]
jmp 0x512c14
mov eax, dword [ebx + 0xcc]
mov esi, dword [eax]
lea edi, [ebx + 0xc8]
cmp edi, edi
mov ebp, dword [edi + 4]
je 0x512c63
call fcn.005b1933
cmp esi, ebp
je 0x512c9c
cmp esi, dword [edi + 4]
jne 0x512c71
call fcn.005b1933
cmp dword [esi + 0x1c], 0
je 0x512c8e
cmp esi, dword [edi + 4]
jne 0x512c81
call fcn.005b1933
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x2c]
call fcn.004afdc0
cmp esi, dword [edi + 4]
jne 0x512c98
call fcn.005b1933
mov esi, dword [esi]
jmp 0x512c57
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x512cc3
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x512e26
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ecx
je 0x512d15
mov edi, dword [esp + 0x30]
cmp eax, edi
je 0x512d06
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x512ceb
mov eax, dword [esi - 0x14]
push eax
call fcn.00595eb8
add esp, 4
xor ecx, ecx
mov dword [esi], 0xf
mov dword [esi - 4], ecx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x512cd8
mov eax, dword [esp + 0x2c]
push eax
call fcn.00595eb8
mov esi, dword [esp + 0x20]
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
je 0x512d71
mov edi, dword [esp + 0x40]
cmp eax, edi
je 0x512d62
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x512d47
mov eax, dword [esi - 0x14]
push eax
call fcn.00595eb8
add esp, 4
xor ecx, ecx
mov dword [esi], 0xf
mov dword [esi - 4], ecx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x512d34
mov eax, dword [esp + 0x3c]
push eax
call fcn.00595eb8
mov esi, dword [esp + 0x20]
add esp, 4
xor ecx, ecx
cmp esi, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
je 0x512dc9
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x512dc0
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x512da1
mov eax, dword [esi - 0x14]
push eax
call fcn.00595eb8
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x512d90
mov esi, dword [esp + 0x1c]
push esi
call fcn.00595eb8
add esp, 4
xor eax, eax
lea ecx, [esp + 0x188]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x69c], al
call fcn.00409e00
lea edx, [esp + 0x188]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x254], 0x10
jb 0x512e1f
mov eax, dword [esp + 0x240]
push eax
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x513924
mov dword [esp + 0xb4], 0x62b2f8
mov dword [esp + 0xbc], 0x62ac50
mov dword [esp + 0x108], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
xor edi, edi
push edi
lea ecx, [esp + 0xc4]
push ecx
mov ebx, 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0x6a4], 6
mov dword [esp + 0x54], ebx
call fcn.00420ba0
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xc0]
mov dword [esp + 0x69c], 7
mov dword [esp + eax + 0xb4], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040bb40
mov dword [esp + 0xc0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], edi
lea ecx, [esp + 0xbc]
push str.pushd_interface_ipv6_n
push ecx
mov byte [esp + 0x6a4], 9
call fcn.00409b60
add esp, 8
xor ebp, ebp
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x513018
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x513018
test ebx, ebx
je 0x512f80
cmp ebp, eax
jb 0x512f11
call fcn.005b1933
mov esi, dword [esp + 0x1c]
lea eax, [esi + edi]
push eax
push str.address
push 0x5f42a4
push 0x5f446c
lea edx, [esp + 0x24c]
push edx
push 0x5f446c
lea eax, [esp + 0xd4]
push str.set_address_interface
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
xor ebx, ebx
jmp 0x512ff8
cmp ebp, eax
jb 0x512f8d
call fcn.005b1933
mov esi, dword [esp + 0x1c]
lea eax, [esi + edi]
push eax
push str.address
push 0x5f42a4
push 0x5f446c
lea ecx, [esp + 0x24c]
push ecx
push 0x5f446c
lea edx, [esp + 0xd4]
push str.add_address_interface
push edx
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
lea eax, [esp + 0xbc]
push 0x5f4b10
push eax
call fcn.00409b60
add esp, 8
add ebp, 1
add edi, 0x1c
jmp 0x512ed3
xor esi, esi
xor ebp, ebp
lea esp, [esp]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x5130d5
mov ecx, dword [esp + 0x40]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x5130d5
lea eax, [edi + ebp]
push eax
push str.nexthop
push 0x5f42a4
push 0x5f446c
lea ecx, [esp + 0x24c]
push ecx
push 0x5f446c
lea edx, [esp + 0xd4]
push str.add_route_prefix::_0_interface
push edx
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
lea eax, [esp + 0xc4]
push 0x5f4b10
push eax
call fcn.00409b60
add esp, 0x10
add esi, 1
add ebp, 0x1c
jmp 0x513020
xor ebx, ebx
mov edi, 1
xor ebp, ebp
mov edi, edi
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5132da
mov ecx, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x5132da
test edi, edi
je 0x513207
cmp ebx, eax
jb 0x513122
call fcn.005b1933
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x254], 0x10
mov ecx, dword [esp + 0x240]
lea eax, [esi + ebp]
jae 0x51313d
lea ecx, [esp + 0x240]
push 0x5f5770
push str.validate
push 0x5f42a4
push str.registerPRIMARY
push 0x5f42a4
push eax
push str.address
push 0x5f42a4
push str.sourcestatic
push 0x5f42a4
push 0x5f446c
push ecx
push 0x5f446c
lea ecx, [esp + 0xf0]
push str.set_dnsservers_name
push ecx
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
xor edi, edi
jmp 0x5132ba
cmp ebx, eax
jb 0x513214
call fcn.005b1933
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x254], 0x10
mov ecx, dword [esp + 0x240]
lea eax, [esi + ebp]
jae 0x51322f
lea ecx, [esp + 0x240]
push 0x5f5770
push str.validate
push 0x5f42a4
push eax
push str.address
push 0x5f42a4
push 0x5f446c
push ecx
push 0x5f446c
lea edx, [esp + 0xe0]
push str.add_dnsservers_name
push edx
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea eax, [esp + 0xbc]
push 0x5f4b10
push eax
call fcn.00409b60
add esp, 8
add ebx, 1
add ebp, 0x1c
jmp 0x5130e0
lea ecx, [esp + 0xbc]
push str.popd
push ecx
call fcn.00409b60
lea edx, [esp + 0x58]
push 1
push edx
call fcn.00501110
push 0x5f4230
push eax
lea eax, [esp + 0xb0]
push eax
mov byte [esp + 0x6b8], 0xa
call fcn.00404a60
push str.ipv6information.txt
push eax
lea ecx, [esp + 0x298]
push ecx
mov byte [esp + 0x6c4], 0xb
call fcn.00404a60
add esp, 0x28
mov edi, 0x10
cmp dword [esp + 0xb0], edi
jb 0x51334f
mov edx, dword [esp + 0x9c]
push edx
call fcn.00595eb8
add esp, 4
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x68], edi
mov byte [esp + 0x69c], 0xe
jb 0x513386
mov eax, dword [esp + 0x54]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x28c], edi
mov eax, dword [esp + 0x278]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], 0
jae 0x5133aa
lea eax, [esp + 0x278]
push 0x5f5540
push eax
call fcn.005b1ae9
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x51340d
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0xb8]
call fcn.004209f0
cmp dword [eax + 0x18], edi
jb 0x5133d9
mov eax, dword [eax + 4]
jmp 0x5133dc
add eax, 4
push eax
push 0x5f553c
push esi
call fcn.005b1de3
add esp, 0xc
cmp dword [esp + 0x94], edi
jb 0x513404
mov edx, dword [esp + 0x80]
push edx
call fcn.00595eb8
add esp, 4
push esi
call fcn.005b1fa4
add esp, 4
push 0xb
push str.netsh_exec
lea ecx, [esp + 0x260]
mov dword [esp + 0x278], ebp
mov dword [esp + 0x274], ebx
mov byte [esp + 0x264], 0
call fcn.00409790
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x80]
push 0x5f446c
push ecx
mov byte [esp + 0x6a8], 0xf
call fcn.00449260
push 0x5f446c
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x6b4], 0x10
call fcn.00404a60
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x264]
mov byte [esp + 0x6a8], 0x11
call fcn.00408200
cmp dword [esp + 0x68], edi
jb 0x51349e
mov eax, dword [esp + 0x54]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x94], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], 0
mov byte [esp + 0x69c], 0xf
jb 0x5134cc
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x270], edi
mov eax, dword [esp + 0x25c]
jae 0x5134e3
lea eax, [esp + 0x25c]
push 0x20
push ebx
push 0xea60
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x88]
call fcn.00502820
test eax, eax
je 0x5137ab
push 1
push 2
lea ecx, [esp + 0x1c4]
call fcn.0040b040
mov eax, dword [esp + 0x48]
push eax
push 0x5f5700
mov byte [esp + 0x6a4], 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c8]
push 0x5f5518
push ecx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c0]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x69c], 0x13
jb 0x51357d
mov eax, dword [eax + 4]
jmp 0x513580
add eax, 4
push eax
push str.BaseLib::CIPConfig::SetNetCfgCmd_ipv6
push 0x56f
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x94], edi
jb 0x5135ba
mov eax, dword [esp + 0x80]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x208]
mov byte [esp + 0x69c], 0xf
call fcn.00409e00
lea ecx, [esp + 0x208]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x20c], esi
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x270], edi
jb 0x513603
mov edx, dword [esp + 0x25c]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x28c], edi
mov dword [esp + 0x270], ebp
mov dword [esp + 0x26c], ebx
mov byte [esp + 0x25c], 0
jb 0x513632
mov eax, dword [esp + 0x278]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x108]
mov dword [esp + 0x28c], ebp
mov dword [esp + 0x288], ebx
mov byte [esp + 0x278], 0
mov byte [esp + 0x69c], 5
call fcn.00420970
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], esi
call fcn.005cdcde
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
je 0x5136bc
mov edi, dword [esp + 0x30]
cmp eax, edi
je 0x5136ae
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x513697
mov eax, dword [esi - 0x14]
push eax
call fcn.00595eb8
add esp, 4
mov dword [esi], ebp
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x513686
mov eax, dword [esp + 0x2c]
push eax
call fcn.00595eb8
add esp, 4
mov edi, 0x10
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x513716
mov edi, dword [esp + 0x40]
cmp eax, edi
je 0x513708
lea esi, [eax + 0x18]
jmp 0x5136e0
cmp dword [esi], 0x10
jb 0x5136f1
mov eax, dword [esi - 0x14]
push eax
call fcn.00595eb8
add esp, 4
mov dword [esi], ebp
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x5136e0
mov eax, dword [esp + 0x3c]
push eax
call fcn.00595eb8
add esp, 4
mov edi, 0x10
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x51374c
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00438f10
mov edx, dword [esp + 0x2c]
push edx
call fcn.00595eb8
add esp, 0x14
lea ecx, [esp + 0x188]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x69c], 0
call fcn.00409e00
lea eax, [esp + 0x188]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x254], edi
jb 0x512e1f
mov ecx, dword [esp + 0x240]
push ecx
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x513924
cmp dword [esp + 0x270], edi
jb 0x5137c4
mov edx, dword [esp + 0x25c]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x28c], edi
mov dword [esp + 0x270], ebp
mov dword [esp + 0x26c], ebx
mov byte [esp + 0x25c], 0
jb 0x5137f3
mov eax, dword [esp + 0x278]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x108]
mov dword [esp + 0x28c], ebp
mov dword [esp + 0x288], ebx
mov byte [esp + 0x278], 0
mov byte [esp + 0x69c], 5
call fcn.00420970
lea ecx, [esp + 0x108]
mov esi, vtable.std::ios_base.0
push ecx
mov dword [esp + 0x10c], esi
call fcn.005cdcde
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
je 0x513863
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00438f10
mov eax, dword [esp + 0x3c]
push eax
call fcn.00595eb8
add esp, 0x14
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x513899
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
call fcn.00438f10
mov edx, dword [esp + 0x4c]
push edx
call fcn.00595eb8
add esp, 0x14
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x5138cf
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00438f10
mov edx, dword [esp + 0x2c]
push edx
call fcn.00595eb8
add esp, 0x14
lea ecx, [esp + 0x188]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x69c], 0
call fcn.00409e00
lea eax, [esp + 0x188]
push eax
mov dword [esp + 0x18c], esi
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0x254], edi
jb 0x51391f
mov ecx, dword [esp + 0x240]
push ecx
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x694]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x67c]
xor ecx, esp
call fcn.005b1988
add esp, 0x68c
ret