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

Disassembly:
push 0xffffffffffffffff
push 0x4d4230
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x507334]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x507334]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x13c]
mov ebx, ecx
push str.__b_f_n_r_t
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
call fcn.0048fa10
add esp, 8
test eax, eax
jne 0x477e0b
cmp byte [ebp], al
mov ecx, ebp
je 0x477d6d
lea ecx, [ecx]
movzx eax, byte [ecx]
sub al, 1
mov dl, 0x1e
cmp dl, al
sbb eax, eax
add eax, 1
add ecx, 1
test al, al
jne 0x477e0b
cmp byte [ecx], al
jne 0x477d50
mov esi, 0xf
xor edi, edi
push 0x4de1e8
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
call fcn.004873b0
add esp, 4
push eax
push 0x4de1e8
lea ecx, [esp + 0x2c]
call fcn.0040478f
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x140], edi
call fcn.00469b35
add esp, 0xc
push 0x4de1e8
push eax
push ebx
mov byte [esp + 0x140], 1
call fcn.00469b35
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x78], edi
jb 0x477de6
mov edx, dword [esp + 0x64]
push edx
call fcn.00489bc2
add esp, 4
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
jb 0x478397
mov eax, dword [esp + 0x28]
push eax
jmp 0x47838f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477e10
sub eax, edx
lea esi, [eax + eax + 3]
mov eax, 0xf
xor edi, edi
mov dword [esp + 0x120], eax
mov dword [esp + 0x11c], edi
mov byte [esp + 0x10c], 0
cmp esi, eax
mov dword [esp + 0x134], 2
je 0x477ea5
cmp esi, 0xfffffffe
jbe 0x477e63
call fcn.004867bd
mov eax, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
cmp eax, esi
jae 0x477ef3
push edi
push esi
lea ecx, [esp + 0x110]
call fcn.00404d27
mov eax, dword [esp + 0x120]
test esi, esi
jbe 0x477ea5
cmp eax, 0x10
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x11c], 0
jae 0x477ea2
lea eax, [esp + 0x10c]
mov byte [eax], 0
push 0x4de1e8
call fcn.004873b0
add esp, 4
push eax
push 0x4de1e8
lea eax, [esp + 0x110]
call fcn.00402196
cmp byte [ebp], 0
mov edi, ebp
mov dword [esp + 0x18], ebp
je 0x478339
mov bl, byte [edi]
movsx eax, bl
add eax, 0xfffffff8
cmp eax, 0x54
ja case.0x477eec.11
movzx edx, byte [eax + 0x47840c]
jmp dword [edx*4 + 0x4783ec]
cmp esi, 0x10
jae 0x477f50
cmp esi, edi
jae 0x477efe
mov edi, esi
cmp eax, 0x10
jb 0x477f31
test edi, edi
mov eax, dword [esp + 0x10c]
mov ebx, eax
jbe 0x477f24
push edi
push eax
lea ecx, [esp + 0x114]
push 0x10
push ecx
call fcn.004891f8
add esp, 0x10
push ebx
call fcn.00489bc2
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], edi
mov byte [esp + edi + 0x10c], 0
jmp 0x477e79
test esi, esi
jne 0x477e82
jmp 0x477e84
push 0x4eeddc
call fcn.004873b0
add esp, 4
push eax
push 0x4eeddc
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eede0
call fcn.004873b0
add esp, 4
push eax
push 0x4eede0
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eede4
call fcn.004873b0
add esp, 4
push eax
push 0x4eede4
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eede8
call fcn.004873b0
add esp, 4
push eax
push 0x4eede8
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eedec
call fcn.004873b0
add esp, 4
push eax
push 0x4eedec
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eedf0
call fcn.004873b0
add esp, 4
push eax
push 0x4eedf0
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
push 0x4eedf4
call fcn.004873b0
add esp, 4
push eax
push 0x4eedf4
lea eax, [esp + 0x110]
call fcn.00402196
jmp 0x478325
mov al, bl
sub al, 1
cmp al, 0x1e
ja 0x47828d
lea ecx, [esp + 0x7c]
push ecx
call fcn.0040233b
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x138], 3
call fcn.00479830
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
jne 0x478090
xor eax, eax
jmp 0x478097
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [eax + 0x10]
and ecx, 0xfffff9ff
or ecx, 0x800
cmp esi, ebp
mov dword [eax + 0x10], ecx
jne 0x4780b1
xor eax, eax
jmp 0x4780b8
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
or dword [eax + 0x10], 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x100]
add eax, esi
push 4
push ecx
mov byte [eax + 0x30], 0x30
call fcn.00486ba6
mov edx, dword [esi]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add ecx, esi
push edx
push ecx
call eax
movsx ecx, byte [edi]
add esp, 0x10
push ecx
push esi
call fcn.00402234
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x80]
call fcn.004023f6
push 0xffffffffffffffff
push ebp
lea esi, [esp + 0x110]
mov byte [esp + 0x13c], 4
call fcn.00404e19
cmp dword [esp + 0x5c], 0x10
jb 0x47812f
mov eax, dword [esp + 0x48]
push eax
call fcn.00489bc2
add esp, 4
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
mov eax, dword [edx + 4]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x40], ecx
mov dword [esp + eax + 0x7c], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
test byte [esp + 0xc0], 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x80], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
je 0x47818c
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
push eax
call fcn.00489bc2
add esp, 4
mov eax, dword [esp + 0x90]
mov dword [eax], ebp
mov ecx, dword [esp + 0xa0]
mov dword [ecx], ebp
mov edx, dword [esp + 0xb0]
mov dword [edx], ebp
mov eax, dword [esp + 0x94]
mov dword [eax], ebp
mov ecx, dword [esp + 0xa4]
mov dword [ecx], ebp
mov edx, dword [esp + 0xb4]
mov dword [edx], ebp
and dword [esp + 0xc0], 0xfffffffe
mov dword [esp + 0xbc], ebp
mov dword [esp + 0x80], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x134], 6
mov eax, dword [esp + 0xb8]
cmp eax, ebp
mov ebx, eax
je 0x478242
mov edi, dword [eax]
cmp edi, ebp
je 0x478235
push ebp
lea ecx, [esp + 0x20]
call fcn.004869fd
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x478213
cmp eax, 0xffffffff
jae 0x478213
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.00486a1e
cmp esi, ebp
je 0x478235
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00489bc2
mov edi, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x134], 5
call fcn.0048677d
mov byte [esp + 0x134], 2
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc8]
mov dword [esp + ecx + 0x7c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0xcc], vtable.std::ios_base.0
call fcn.0048641c
add esp, 4
jmp 0x478325
or eax, 0xffffffff
sub eax, dword [esp + 0x11c]
cmp eax, 1
ja 0x4782a1
call fcn.004867bd
mov esi, dword [esp + 0x11c]
add esi, 1
cmp esi, 0xfffffffe
jbe 0x4782b5
call fcn.004867bd
mov eax, dword [esp + 0x120]
cmp eax, esi
jae 0x4783c1
mov ecx, dword [esp + 0x11c]
push ecx
push esi
lea ecx, [esp + 0x110]
call fcn.00404d27
test esi, esi
jbe 0x478325
mov eax, dword [esp + 0x10c]
mov ecx, 0x10
cmp dword [esp + 0x120], ecx
jae 0x4782f9
lea eax, [esp + 0x10c]
mov edx, dword [esp + 0x11c]
mov byte [eax + edx], bl
cmp dword [esp + 0x120], ecx
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x11c], esi
jae 0x478321
lea eax, [esp + 0x10c]
mov byte [eax + esi], 0
add edi, 1
cmp byte [edi], 0
mov dword [esp + 0x18], edi
jne 0x477ed4
mov ebx, dword [esp + 0x14]
push 0x4de1e8
call fcn.004873b0
add esp, 4
push eax
push 0x4de1e8
lea eax, [esp + 0x110]
call fcn.00402196
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x110]
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], 0
push eax
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00404801
cmp dword [esp + 0x120], 0x10
jb 0x478397
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.00489bc2
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0048f726
add esp, 0x124
ret
test esi, esi
jne 0x4782db
cmp eax, 0x10
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x11c], esi
jae 0x4783e3
lea eax, [esp + 0x10c]
mov byte [eax], 0
jmp 0x478325