Function at 0x52d030
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x58]
call fcn.00601502
add esp, 4
cmp dword [edi + 0x64], 0
jbe 0x52d6ce
cmp dword [edi + 0x38], 0
jbe 0x52d374
push 1
push 2
lea ecx, [ebp - 0x104]
call fcn.00442b90
movzx eax, word [edi + 0x68]
cdq
push edx
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
call fcn.005d4ead
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea esi, [edi + 0x28]
lea eax, [ebp - 0x104]
push 0x68fa40
push esi
push eax
call fcn.0044d890
add esp, 8
push eax
call fcn.0044daf0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x52d0d6
xor ecx, ecx
jmp 0x52d0dd
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
mov eax, dword [ebp - 0x5c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
mov eax, dword [eax + 4]
mov byte [eax + ebx + 0x40], 0x30
push dword [edi + 0x64]
call fcn.00441f70
push 0
mov ecx, eax
call fcn.00471810
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x104]
call fcn.00442d70
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.005f1ae7
mov eax, dword [edi + 0x64]
add esp, 4
mov dword [ebp - 0x5c], eax
cmp eax, 1
jbe 0x52d309
lea ecx, [ecx]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test byte [ebp - 0xc4], 1
mov byte [ebp - 4], 2
je 0x52d16f
mov eax, dword [ebp - 0xf4]
push dword [eax]
call fcn.005e8fa6
add esp, 4
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0x100]
mov dword [eax], 0
mov eax, dword [ebp - 0xe4]
mov dword [eax], 0
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0
mov eax, dword [ebp - 0xf0]
mov dword [eax], 0
mov eax, dword [ebp - 0xe0]
mov dword [eax], 0
mov eax, dword [ebp - 0xd0]
mov dword [eax], 0
mov eax, dword [ebp - 0xc4]
and eax, 0xfffffffe
mov dword [ebp - 0xc8], 0
push eax
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00448040
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], 1
jb 0x52d1f7
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
movzx eax, word [edi + 0x68]
cdq
push edx
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.005d4ead
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x104]
push 0x2e
push esi
push eax
call fcn.0044d890
add esp, 8
push eax
call fcn.0044aaf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x52d231
xor ecx, ecx
jmp 0x52d238
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [ebx + 0xc]
mov eax, dword [ebx]
push dword [ebx + 8]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
mov ecx, esi
dec ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [eax + 4]
push ebx
mov byte [eax + esi + 0x40], 0x30
call fcn.00441f70
push 0
mov ecx, eax
call fcn.00471810
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x104]
call fcn.00442d70
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
cmp dword [eax + 0x14], 0x10
jb 0x52d28a
mov eax, dword [eax]
push ecx
push eax
call fcn.005f1b29
add esp, 8
cmp dword [ebp - 0x2c], 0x10
jb 0x52d2a5
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x104]
call fcn.00442d70
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x52d2e9
cmp dword [ebp - 0x44], 0x10
jb 0x52d2ce
push dword [ebp - 0x58]
call fcn.005e8fa6
add esp, 4
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00422690
cmp dword [ebp - 0x2c], 0x10
jb 0x52d2fa
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
lea esi, [edi + 0x28]
cmp ebx, 1
ja 0x52d140
lea esi, [edi + 0x28]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp dword [esi + 0x14], 0x10
jb 0x52d31c
mov esi, dword [esi]
push eax
push esi
call fcn.005f1b29
add esp, 8
cmp dword [ebp - 0x44], 0x10
jb 0x52d337
push dword [ebp - 0x58]
call fcn.005e8fa6
add esp, 4
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00442cf0
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], vtable.std::ios_base.0
push eax
call fcn.005d4a5a
add esp, 4
cmp dword [edi + 0x50], 0
jbe 0x52d6ce
push 1
push 2
lea ecx, [ebp - 0x19c]
call fcn.0052a3b0
movzx eax, word [edi + 0x68]
cdq
push edx
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
push eax
call fcn.005d4ead
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea ebx, [edi + 0x40]
lea eax, [ebp - 0x19c]
push 0x63cf3c
push ebx
push eax
call fcn.00529c90
add esp, 8
push eax
call fcn.00529930
mov esi, eax
add esp, 8
test esi, esi
jne 0x52d3d5
xor ecx, ecx
jmp 0x52d3dc
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x5c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ecx, 0x30
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], cx
mov ecx, esi
push dword [edi + 0x64]
call fcn.0052aa40
push 0
mov ecx, eax
call fcn.0052ce10
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0052dae0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005f1c4c
mov eax, dword [edi + 0x64]
add esp, 4
mov dword [ebp - 0x5c], eax
cmp eax, 1
jbe 0x52d661
jmp 0x52d450
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test byte [ebp - 0x15c], 1
mov byte [ebp - 4], 5
je 0x52d481
mov eax, dword [ebp - 0x18c]
push dword [eax]
call fcn.005e8fa6
add esp, 4
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x198]
mov dword [eax], 0
mov eax, dword [ebp - 0x17c]
mov dword [eax], 0
mov eax, dword [ebp - 0x16c]
mov dword [eax], 0
mov eax, dword [ebp - 0x188]
mov dword [eax], 0
mov eax, dword [ebp - 0x178]
mov dword [eax], 0
mov eax, dword [ebp - 0x168]
mov dword [eax], 0
mov eax, dword [ebp - 0x15c]
and eax, 0xfffffffe
mov dword [ebp - 0x160], 0
push eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0052b4a0
cmp dword [ebp - 0x2c], 8
mov byte [ebp - 4], 4
jb 0x52d509
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
movzx eax, word [edi + 0x68]
cdq
push edx
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.005d4ead
add esp, 0xc
mov ebx, eax
lea eax, [edi + 0x40]
push 0x2e
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00529c90
add esp, 8
push eax
call fcn.00529570
mov esi, eax
add esp, 8
test esi, esi
jne 0x52d546
xor ecx, ecx
jmp 0x52d54d
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push dword [ebx + 0xc]
mov eax, dword [ebx]
push dword [ebx + 8]
push ecx
call eax
mov eax, dword [esi]
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
mov ecx, 0x30
dec ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [eax + 4]
push ebx
mov word [eax + esi + 0x40], cx
mov ecx, esi
call fcn.0052aa40
push 0
mov ecx, eax
call fcn.0052ce10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0052dae0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x52d5a4
mov eax, dword [eax]
push ecx
push eax
call fcn.005f1bec
add esp, 8
cmp dword [ebp - 0x2c], 8
jb 0x52d5bf
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0052dae0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x52d644
cmp dword [ebp - 0x14], 8
jb 0x52d5e8
push dword [ebp - 0x28]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x52d61a
mov eax, dword [esi + 0x10]
inc eax
je 0x52d625
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005e90f0
add esp, 0xc
jmp 0x52d625
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x2c], 8
jb 0x52d655
push dword [ebp - 0x40]
call fcn.005e8fa6
add esp, 4
cmp ebx, 1
ja 0x52d450
lea ebx, [edi + 0x40]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x52d674
mov ebx, dword [ebx]
push eax
push ebx
call fcn.005f1bec
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x52d68f
push dword [ebp - 0x28]
call fcn.005e8fa6
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0052a6d0
lea eax, [ebp - 0x14c]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.005d4a5a
add esp, 4
cmp dword [edi + 0x38], 0
jbe 0x52d6ed
cmp dword [edi + 0x3c], 0x10
lea eax, [edi + 0x28]
jb 0x52d6df
mov eax, dword [eax]
push dword [edi + 0x60]
push dword [edi + 0x5c]
push eax
call fcn.00611aa8
jmp 0x52d704
cmp dword [edi + 0x54], 8
lea eax, [edi + 0x40]
jb 0x52d6f8
mov eax, dword [eax]
push dword [edi + 0x60]
push dword [edi + 0x5c]
push eax
call fcn.005f1c1f
mov dword [edi + 0x58], eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret