Function at 0x401546
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4188c0
push 0xffffffffffffffff
push 0x49dcda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
xor eax, eax
push esi
mov dword [esp + 9], eax
push edi
mov dword [esp + 0x11], eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x15], eax
mov dword [esp + 8], 0
mov dword [esp + 0x19], eax
mov byte [esp + 0xc], 0
mov word [esp + 0x1d], ax
mov dword [esp + 0x20], 0x4a6a04
mov byte [esp + 0x1f], al
call fcn.004014bf
mov esi, 1
mov dword [esp + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 8], esi
push 0
push esi
lea ecx, [esp + 0x2c]
push 0
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc4], 0
call fcn.00401b7c
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0xb8], esi
call fcn.00401b8b
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x20], 0x4a6a00
mov eax, dword [esp + 0x74]
mov dword [esp + 0xb4], 2
test eax, eax
jne 0x4189a8
push 0x12
push str.tmp.txt
call fcn.00452465
add esp, 8
test eax, eax
je 0x4189a8
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004014b0
lea ecx, [esp + 0x24]
call fcn.00401c71
lea ecx, [esp + 0x24]
test ecx, ecx
jne 0x4189c1
mov edx, dword [esp + 0x20]
push 0
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x24]
mov eax, dword [esp + eax + 0x28]
or al, 2
push eax
call fcn.00401e92
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401b9a
push 2
lea ecx, [esp + 0x1c]
push 0x4c1a98
push ecx
call fcn.0043f300
add esp, 0x14
test eax, eax
je 0x418bb6
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
push esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
call fcn.004014dd
xor ecx, ecx
lea edx, [esp + 0x15]
mov cl, byte [0x4c1a01]
mov esi, eax
sub ecx, 2
push ecx
push str.MT0210
push edx
call fcn.0043f300
add esp, 0x14
test eax, eax
je 0x418b4f
push 3
lea eax, [esp + 0x11]
push 0x4c1a8c
push eax
call fcn.0043f300
add esp, 0xc
test eax, eax
je 0x418b09
xor ecx, ecx
lea edx, [esp + 0xe]
mov cl, byte [0x4c1a01]
sub ecx, 4
push ecx
push str.C01S
push edx
call fcn.0043f300
add esp, 0xc
test eax, eax
je 0x418b4f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x20], 0x4a6a00
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 4
call fcn.00402446
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x20], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0045225a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
push 6
lea edx, [esp + 0x11]
push str.DTC01S
push edx
call fcn.0043f300
add esp, 0xc
test eax, eax
jne 0x418b2d
mov dword [0x4c95bc], 1
jmp 0x418b4f
push 6
lea eax, [esp + 0x11]
push str.DTC03S
push eax
call fcn.0043f300
add esp, 0xc
test eax, eax
jne 0x418b4f
mov dword [0x4c95bc], 3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x78]
mov dword [esp + 8], ecx
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x20], 0x4a6a00
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 5
call fcn.00402446
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x78]
mov dword [esp + edx + 0x20], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
call fcn.00401c12
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004022e8
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401672
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x418bf6
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x418bf6
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402536
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x78]
mov dword [esp + 8], ecx
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x20], 0x4a6a00
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 3
call fcn.00402446
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb4], 0xffffffff
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x78]
mov dword [esp + edx + 0x20], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0045225a
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0xb0
ret