Function at 0x475b9b
Capabilities:
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e40c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x4ad15c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edx + 8]
lea esi, [edx + 0x10]
mov dword [ebp - 0x1f8], eax
lea ecx, [edx + 0x20]
lea eax, [edx + 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x20c], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x220], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x21c], eax
mov eax, dword [esi]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 4]
push ecx
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x214], eax
call fcn.00463aad
mov ecx, dword [ebp - 0x1f8]
call fcn.00476776
test al, al
jne 0x475d3e
and dword [ebp - 4], 0
mov edx, dword [0x4d1f34]
test edx, edx
sete ah
test ah, ah
sete al
test al, al
je 0x475c7a
test ah, ah
je 0x475c68
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [edx]
push esi
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edx
call dword [eax + 8]
mov al, byte [ebp - 0x28]
jmp 0x475c7f
xor al, al
mov byte [ebp - 0x28], al
or dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x20]
test al, al
sete cl
test cl, cl
cmovne edx, esi
mov eax, dword [edx]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x218], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x214], eax
sete al
test al, al
je 0x475d3e
push dword [edx + 4]
lea ecx, [ebp - 0x1f0]
push dword [edx]
call fcn.004759c5
mov edx, ecx
mov ecx, dword [ebp - 0x200]
call fcn.00470588
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.00476bb2
mov ecx, dword [eax + 4]
mov edx, dword [eax]
and dword [eax], 0
and dword [eax + 4], 0
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x200], edx
mov dword [ebp - 4], 1
test eax, eax
je 0x475d17
mov ecx, eax
call fcn.00416ce8
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x475d2d
call fcn.00416ce8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f0]
call fcn.00475a4d
jmp 0x475d4a
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], eax
mov esi, dword [ebp - 0x1f8]
lea eax, [ebp - 0x98]
push eax
mov ecx, esi
call fcn.0046b1a6
push eax
mov ecx, 0x4d1e34
call fcn.00473216
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x1f1], al
call fcn.0040d7ed
cmp byte [ebp - 0x1f1], 0
je 0x475da7
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.0046b1a6
push eax
mov ecx, 0x4d1e34
call fcn.0047326a
movzx esi, ax
lea ecx, [ebp - 0xb0]
jmp 0x475e15
cmp byte [ebx + 8], 0
je 0x475ee7
push dword [ebp - 0x20c]
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004764d9
movzx esi, ax
test si, si
jne 0x475def
push dword [ebp - 0x1f8]
mov ecx, 0x4d1e50
call fcn.00473ce6
movzx esi, ax
test si, si
je 0x475ee7
push esi
push ecx
mov ecx, dword [ebp - 0x1f8]
lea eax, [ebp - 0xc8]
push eax
call fcn.0046b1a6
pop ecx
push eax
mov ecx, 0x4d1e34
call fcn.00472f2d
lea ecx, [ebp - 0xc8]
call fcn.0040d7ed
test si, si
je 0x475ee7
cmp byte [ebp - 0x208], 3
sete al
test al, al
je 0x475f4e
push ecx
push ecx
lea ecx, [ebp - 0x2c0]
call fcn.00473406
push esi
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0046db8a
lea eax, [ebp - 0x80]
mov dword [ebp - 0x64], 0x4a4340
mov esi, 0x4a3f80
lea ecx, [ebp - 0x60]
push eax
mov dword [ebp - 0x68], esi
call fcn.0040d7bc
mov ecx, dword [ebp - 0x1f8]
lea eax, [ebp - 0xe0]
push eax
call fcn.0046b1a6
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0x4a3f10
call fcn.0040d7bc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
call fcn.00476056
lea ecx, [ebp - 0x40]
call fcn.0040d7ed
lea ecx, [ebp - 0xe0]
call fcn.0040d7ed
lea ecx, [ebp - 0x60]
call fcn.0040d7ed
lea ecx, [ebp - 0x80]
call fcn.0040d7ed
lea ecx, [ebp - 0x270]
call fcn.004733d6
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x220]
push eax
push ecx
push dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x200]
push eax
call fcn.004760d1
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x1fc]
test ecx, ecx
je 0x475f2c
call fcn.00416ce8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047a72f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
movzx eax, si
sub eax, 1
je 0x476005
sub eax, 1
je 0x475fd2
push 5
pop ecx
sub eax, ecx
je 0x475fb1
sub eax, 3
je 0x475f9a
sub eax, 1
je 0x475f7c
push 0
push 0x14a118c
call fcn.0040c85d
mov al, byte [0x4d1e48]
test al, al
setne al
test al, al
je 0x475ee7
and dword [edi], 0
mov dword [ebp - 4], 6
jmp 0x475f1d
and dword [edi], 0
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x475f2c
mov ecx, eax
jmp 0x475f27
mov al, byte [0x4d1e48]
test al, al
setne al
test al, al
je 0x475ee7
and dword [edi], 0
mov dword [ebp - 4], 8
jmp 0x475f1d
mov eax, dword [0x4c555c]
mov ecx, 0x4c555c
push 0x16218a1
call dword [eax + 4]
mov al, byte [0x4d1e48]
test al, al
setne al
test al, al
je 0x475ee7
and dword [edi], 0
mov dword [ebp - 4], 7
jmp 0x475f1d
mov eax, dword [0x4c555c]
mov ecx, 0x4c555c
push 0x16218a0
call dword [eax + 4]
mov ecx, dword [ebp - 0x1f8]
call fcn.00476776
test al, al
jne 0x476035
and dword [edi], 0
mov dword [ebp - 4], 3
jmp 0x475fa0
mov al, byte [0x4d1e48]
test al, al
setne al
test al, al
je 0x475ee7
and dword [edi], 0
mov dword [ebp - 4], 4
jmp 0x475f1d