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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d546
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x468cb0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, dword [0x46d768]
mov dword [esp + 0x2c], ebx
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404c88
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xe8], 0
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x404cfc
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x404ceb
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x404ceb
push edx
call fcn.004015a0
add esp, 4
mov dword [esp + 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x404ce2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
jmp 0x404cfc
push dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401b90
mov esi, dword [esp + 0x1c]
push 0x45b67c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00430912
add esp, 8
lea ecx, [esp + 0x38]
push dword [esp + 0x34]
call fcn.00406b90
mov byte [esp + 0xe8], 1
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x40], 6
je 0x404d39
xor bl, bl
jmp 0x4050ac
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x14], 0
add eax, edx
je 0x404db5
xor esi, esi
lea esp, [esp]
mov edi, dword [ebx + 0x24]
mov dl, 0x3b
lea ecx, [esp + 0x34]
add edi, esi
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov edi, dword [esp + 0x14]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esi, 0x18
mov dword [esp + 0x14], edi
cmp edi, eax
jb 0x404d60
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404de1
push ecx
lea ecx, [esp + 0x38]
call fcn.004098a0
lea ecx, [esp + 0x34]
call fcn.00409f40
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x20], 0
add eax, edx
je 0x404fb5
xor esi, esi
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0x18]
mov dl, 0x5b
lea ecx, [esp + 0x34]
add edi, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov dl, 0x5d
mov ecx, eax
call fcn.00407a10
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov edi, dword [ebx + 0xc]
xor ecx, ecx
add edi, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x18]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404ecb
xor eax, eax
mov dword [esp + 0x18], eax
nop
mov edi, dword [edi + 0x18]
mov dl, 0x3b
lea ecx, [esp + 0x34]
add edi, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov edi, dword [ebx + 0xc]
inc dword [esp + 0x24]
mov ecx, dword [edi + esi + 0x1c]
sub ecx, dword [edi + esi + 0x18]
add dword [esp + 0x18], 0x18
add edi, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
jb 0x404e70
mov ecx, dword [ebx + 0xc]
add ecx, esi
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
mov dword [esp + 0x18], 0
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404f66
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx]
add edx, ebx
cmp dword [eax + ebx + 0x10], 0
lea ecx, [esp + 0x34]
je 0x404f1d
lea edi, [ebx + eax]
call fcn.00407d40
mov dl, 0x3d
mov ecx, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov ecx, dword [esp + 0x28]
add ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
inc edi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x18
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x404ef6
mov ebx, esi
mov esi, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.004098a0
lea ecx, [esp + 0x34]
call fcn.00409f40
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x20]
add dword [esp + 0x14], 0x18
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esi, 0x24
cmp edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
jb 0x404e12
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x88], 0
lea edi, [esp + 0x38]
jne 0x404fc7
xor edi, edi
jmp 0x404fed
lea ecx, [esp + 0x38]
call fcn.00407550
push dword [esp + 0x88]
xor ecx, ecx
test al, al
cmove edi, ecx
call fcn.00431df9
xor ecx, ecx
add esp, 4
test eax, eax
cmovne edi, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [0x46dfac]
mov byte [esp + 0x84], 0
mov byte [esp + 0x7d], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], 0
test edi, edi
jne 0x4050aa
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x405098
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4050aa
push 0
call fcn.00409eb0
mov bl, 1
mov byte [esp + 0xe8], 0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [esp + ecx + 0x30], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
test eax, eax
je 0x40510f
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x7c]
cmp dword [edx], ecx
jne 0x40510f
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [eax], ecx
mov eax, dword [esp + 0x64]
sub ecx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x88]
cmp byte [esp + 0x84], 0
je 0x4051c5
test eax, eax
je 0x405139
lea ecx, [esp + 0x38]
call fcn.00407550
push dword [esp + 0x88]
call fcn.00431df9
add esp, 4
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [0x46dfac]
mov byte [esp + 0x84], 0
mov byte [esp + 0x7d], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], 0
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x38], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test edi, edi
je 0x4051f5
mov ecx, dword [edi]
test ecx, ecx
je 0x4051ec
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4051ec
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push edi
call fcn.0040e096
add esp, 4
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x30], eax
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.00449968
add esi, 0xfffffff0
add esp, 4
mov dword [esp + 0xe8], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405252
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret