Function at 0x503300
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cfec0
mov eax, dword fs:[0]
push eax
mov eax, 0x1164
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x1178]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1188]
mov esi, dword [esp + 0x118c]
xor ebx, ebx
cmp ecx, ebx
je 0x503a88
cmp esi, ebx
je 0x503a88
mov ebp, 0xf
mov eax, ecx
mov dword [esp + 0x170], ebp
mov dword [esp + 0x16c], ebx
mov byte [esp + 0x15c], bl
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x503380
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x160]
call fcn.00409790
mov eax, esi
mov dword [esp + 0x1180], 2
mov dword [esp + 0x154], ebp
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], 0
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5033c0
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x144]
call fcn.00409790
mov ecx, dword [esp + 0x170]
cmp ecx, 0x10
mov edx, dword [esp + 0x15c]
mov byte [esp + 0x1180], 3
mov byte [esp + 0x17], 0x2f
mov byte [esp + 0x16], 0x5c
mov eax, edx
jae 0x503407
lea eax, [esp + 0x15c]
mov ebx, dword [esp + 0x16c]
lea edi, [eax + ebx]
test edi, edi
je 0x50343b
cmp ecx, 0x10
mov eax, edx
jae 0x503423
lea eax, [esp + 0x15c]
cmp eax, edi
ja 0x50343b
cmp ecx, 0x10
mov eax, edx
jae 0x503435
lea eax, [esp + 0x15c]
add eax, ebx
cmp edi, eax
jbe 0x503455
call fcn.005b1933
mov ecx, dword [esp + 0x170]
mov ebx, dword [esp + 0x16c]
mov edx, dword [esp + 0x15c]
cmp ecx, 0x10
lea ebp, [esp + 0x158]
jb 0x503620
test edx, edx
mov esi, edx
je 0x503491
cmp ecx, 0x10
mov eax, edx
jae 0x503479
lea eax, [esp + 0x15c]
cmp eax, esi
ja 0x503491
cmp ecx, 0x10
mov eax, edx
jae 0x50348b
lea eax, [esp + 0x15c]
add eax, ebx
cmp esi, eax
jbe 0x503496
call fcn.005b1933
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x1a]
push edx
push edi
push ebp
lea eax, [esp + 0x168]
push esi
push eax
call fcn.0045dbd0
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x158]
add esp, 0x18
cmp ecx, 0x10
mov byte [esp + 0x16], 0x2f
mov byte [esp + 0x17], 0x5c
mov eax, edx
jae 0x5034d9
lea eax, [esp + 0x140]
mov ebx, dword [esp + 0x150]
lea edi, [eax + ebx]
test edi, edi
je 0x50350d
cmp ecx, 0x10
mov eax, edx
jae 0x5034f5
lea eax, [esp + 0x140]
cmp eax, edi
ja 0x50350d
cmp ecx, 0x10
mov eax, edx
jae 0x503507
lea eax, [esp + 0x140]
add eax, ebx
cmp edi, eax
jbe 0x503527
call fcn.005b1933
mov ecx, dword [esp + 0x154]
mov ebx, dword [esp + 0x150]
mov edx, dword [esp + 0x140]
cmp ecx, 0x10
lea ebp, [esp + 0x13c]
jb 0x50362c
test edx, edx
mov esi, edx
je 0x503563
cmp ecx, 0x10
mov eax, edx
jae 0x50354b
lea eax, [esp + 0x140]
cmp eax, esi
ja 0x503563
cmp ecx, 0x10
mov eax, edx
jae 0x50355d
lea eax, [esp + 0x140]
add eax, ebx
cmp esi, eax
jbe 0x503568
call fcn.005b1933
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x1b]
push edx
push edi
push ebp
lea eax, [esp + 0x14c]
push esi
push eax
call fcn.0045dbd0
mov ecx, dword [esp + 0x158]
mov esi, 0x10
add esp, 0x18
cmp dword [esp + 0x154], esi
jae 0x5035a1
lea ecx, [esp + 0x140]
cmp dword [esp + 0x170], esi
mov eax, dword [esp + 0x15c]
jae 0x5035b8
lea eax, [esp + 0x15c]
push ecx
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
jne 0x503638
cmp dword [esp + 0x154], esi
jb 0x5035df
mov eax, dword [esp + 0x140]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x170], esi
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], 0
mov byte [esp + 0x140], 0
jb 0x503616
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00595eb8
add esp, 4
mov eax, 1
jmp 0x503b3e
lea esi, [esp + 0x15c]
jmp 0x50346b
lea esi, [esp + 0x140]
jmp 0x50353d
cmp dword [esp + 0x1190], 0
je 0x50366d
cmp dword [esp + 0x154], esi
mov eax, dword [esp + 0x140]
jae 0x503659
lea eax, [esp + 0x140]
push 0
push eax
call fcn.0051ae00
add esp, 8
cmp eax, 0xffffffff
jne 0x5039c0
cmp dword [esp + 0x170], esi
mov eax, dword [esp + 0x15c]
jae 0x503684
lea eax, [esp + 0x15c]
push 0x62c568
push eax
call fcn.005b1ae9
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
test edi, edi
mov bl, 4
mov byte [esp + 0x1180], bl
jne 0x5037e6
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
mov eax, dword [esp + 0x15c]
mov esi, 0x10
cmp dword [esp + 0x170], esi
mov byte [esp + 0x1180], 5
jae 0x5036da
lea eax, [esp + 0x15c]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004094f0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 6
jb 0x503708
mov eax, dword [eax + 4]
jmp 0x50370b
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x811
push str..common_function.cpp
push 0x803
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x18]
call fcn.0040bf30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], bl
call fcn.00409dd0
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
lea ecx, [esp + 0x3c]
push 0x5f44c0
push ecx
mov byte [esp + 0x1188], 7
call fcn.00409b60
add esp, 8
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x40]
call fcn.004094f0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 8
jb 0x50378c
mov eax, dword [eax + 4]
jmp 0x50378f
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x812
push str..common_function.cpp
push 0x803
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x18]
call fcn.0040bf30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], bl
call fcn.00409dd0
lea ecx, [esp + 0x13c]
call fcn.0040bf30
lea ecx, [esp + 0x158]
call fcn.0040bf30
jmp 0x503b3c
mov eax, dword [esp + 0x140]
mov esi, 0x10
cmp dword [esp + 0x154], esi
jae 0x503802
lea eax, [esp + 0x140]
push 0x62c570
push eax
call fcn.005b1ae9
mov ebp, eax
add esp, 8
mov dword [esp + 0x34], ebp
test ebp, ebp
mov byte [esp + 0x1180], 9
jne 0x503951
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
cmp dword [esp + 0x154], esi
mov eax, dword [esp + 0x140]
mov byte [esp + 0x1180], 0xa
jae 0x503852
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x40]
call fcn.004094f0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 0xb
jb 0x503880
mov eax, dword [eax + 4]
jmp 0x503883
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x819
push str..common_function.cpp
push 0x803
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x18]
call fcn.0040bf30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], 9
call fcn.00409dd0
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
lea edx, [esp + 0x3c]
push 0x5f44a4
push edx
mov byte [esp + 0x1188], 0xc
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004094f0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 0xd
jb 0x503905
mov eax, dword [eax + 4]
jmp 0x503908
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x81a
push str..common_function.cpp
push 0x803
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x18]
call fcn.0040bf30
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], 9
call fcn.00409dd0
push edi
call fcn.005b1fa4
add esp, 4
jmp 0x5037c9
push edi
call fcn.005b35b0
add esp, 4
test eax, eax
jne 0x5039b1
mov ebx, dword [esp + 0x1194]
test ebx, ebx
je 0x50396e
cmp dword [ebx], 0
jne 0x5039b1
push edi
push 0x1000
lea ecx, [esp + 0x17c]
push 1
push ecx
call fcn.005b2836
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x5039a4
push ebp
push esi
lea edx, [esp + 0x17c]
push 1
push edx
call fcn.005b1d61
add esp, 0x10
cmp eax, esi
jne 0x5039e2
push edi
call fcn.005b35b0
add esp, 4
test eax, eax
je 0x503965
push ebp
call fcn.005b1fa4
push edi
call fcn.005b1fa4
add esp, 8
lea ecx, [esp + 0x13c]
call fcn.0040bf30
lea ecx, [esp + 0x158]
call fcn.0040bf30
mov eax, 1
jmp 0x503b3e
push 1
push 2
lea ecx, [esp + 0xc4]
call fcn.0040b040
lea eax, [esp + 0xbc]
push 0x5f4498
push eax
mov byte [esp + 0x1188], 0xe
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc0]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1180], 0xf
jb 0x503a33
mov eax, dword [eax + 4]
jmp 0x503a36
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x82b
push str..common_function.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x18]
call fcn.0040bf30
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1180], 9
call fcn.00409dd0
push ebp
call fcn.005b1fa4
push edi
call fcn.005b1fa4
add esp, 8
jmp 0x5037c9
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
lea edx, [esp + 0x3c]
push 0x5f4470
push edx
mov dword [esp + 0x1188], ebx
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 1
jb 0x503ad3
mov eax, dword [eax + 4]
jmp 0x503ad6
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x7f9
push str..common_function.cpp
push 0x803
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x30], esi
jb 0x503b0a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x1180], 0xffffffff
call fcn.00409e00
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1160]
xor ecx, esp
call fcn.005b1988
add esp, 0x1170
ret