Function at 0x401b9a
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x40
lea ebp, [esp - 4]
mov eax, dword [0x430070]
xor eax, ebp
mov dword [ebp + 0x40], eax
push 0x168
mov eax, 0x41f432
call fcn.00405e1b
cmp dword [ebp + 0x4c], 2
mov eax, dword [ebp + 0x50]
jge 0x401bd5
call fcn.00403f83
push eax
call fcn.00404146
pop ecx
jmp 0x401ea2
push dword [eax + 4]
xor ebx, ebx
mov dword [ebp + 8], 0xbfbbef
lea ecx, [ebp + 0x28]
mov byte [ebp + 4], bl
mov word [ebp + 5], bx
mov byte [ebp + 7], bl
call fcn.00401f7c
push 0x10
pop esi
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], esi
push ebx
cmovae eax, dword [ebp + 0x28]
push eax
call fcn.0040b5fc
pop ecx
pop ecx
cmp eax, 2
je 0x401e97
push ecx
lea edx, [ebp + 0x28]
lea ecx, [ebp + 0x10]
call fcn.00404178
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x24], esi
lea eax, [ebp + 0x28]
cmovae ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x3c], esi
push ecx
cmovae eax, dword [ebp + 0x28]
push eax
call fcn.0040b686
pop ecx
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.004020b7
mov byte [ebp - 4], 2
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], esi
push ecx
cmovae eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xb4]
push 0x23
push eax
call fcn.00403aa6
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 4
pop edx
push ebx
mov eax, dword [eax + 4]
jne 0x401c91
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.004038b4
jmp 0x401ca1
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], ebx
cmove eax, edx
push eax
call fcn.00401950
push ecx
push ecx
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00402939
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0040b570
mov edi, vtable.std::ios_base.0
pop ecx
pop ecx
test eax, eax
jne 0x401e29
sub esp, 0x18
lea ecx, [ebp - 0xc4]
mov eax, esp
mov dword [eax], 3
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
call fcn.00402887
push ecx
lea ecx, [ebp - 0x174]
call fcn.0040200f
mov byte [ebp - 4], 3
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], esi
push ecx
cmovae eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x170]
push 0x22
push eax
call fcn.00403aa6
test eax, eax
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 0x174]
push ebx
mov eax, dword [eax + 4]
jne 0x401d40
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.004038b4
jmp 0x401d53
add ecx, eax
xor eax, eax
push 4
pop edx
cmp dword [ecx + 0x38], ebx
cmove eax, edx
push eax
call fcn.00401950
lea ecx, [ebp - 0xc4]
call fcn.004037d3
movzx edx, byte [ebp + 0xf]
cmp eax, 0xffffffff
movzx eax, al
sete cl
test cl, cl
cmove edx, eax
mov eax, dword [ebp - 0xc4]
mov byte [ebp + 0xf], dl
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb8], 6
jne 0x401d99
push ecx
push ecx
lea eax, [ebp + 0xf]
push eax
lea ecx, [ebp - 0x174]
call fcn.004027c6
jmp 0x401d53
lea ecx, [ebp - 0xb4]
call fcn.004036e9
test eax, eax
jne 0x401dc6
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push ebx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.004038b4
lea ecx, [ebp - 0x170]
call fcn.004036e9
test eax, eax
jne 0x401df3
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x174]
push ebx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.004038b4
cmp dword [ebp + 0x24], esi
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call fcn.0040b123
pop ecx
lea ecx, [ebp - 0x10c]
call fcn.00401fcc
push 4
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x10c], edi
call fcn.00404a75
jmp 0x401e72
lea ecx, [ebp - 0xb4]
call fcn.004036e9
test eax, eax
jne 0x401e56
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push ebx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.004038b4
cmp dword [ebp + 0x3c], esi
lea ecx, [ebp + 0x28]
lea eax, [ebp + 0x10]
cmovae ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], esi
push ecx
cmovae eax, dword [ebp + 0x10]
push eax
call fcn.0040b686
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00402074
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x54], edi
call fcn.00404a75
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x10]
call fcn.00403159
push ebx
push 1
lea ecx, [ebp + 0x28]
call fcn.00403159
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40]
xor ecx, ebp
call fcn.00405696
lea esp, [ebp + 0x44]
pop ebp
ret