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

Disassembly:
push 0xffffffffffffffff
push 0x44d050
mov eax, dword fs:[0]
push eax
mov eax, 0x1164
call fcn.00435600
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x1160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
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 0x41df58
cmp esi, ebx
je 0x41df58
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 0x41d850
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x160]
call fcn.00405b30
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 0x41d890
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x144]
call fcn.00405b30
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 0x41d8d7
lea eax, [esp + 0x15c]
mov ebx, dword [esp + 0x16c]
lea edi, [eax + ebx]
test edi, edi
je 0x41d90b
cmp ecx, 0x10
mov eax, edx
jae 0x41d8f3
lea eax, [esp + 0x15c]
cmp eax, edi
ja 0x41d90b
cmp ecx, 0x10
mov eax, edx
jae 0x41d905
lea eax, [esp + 0x15c]
add eax, ebx
cmp edi, eax
jbe 0x41d925
call fcn.0043471e
mov ecx, dword [esp + 0x170]
mov ebx, dword [esp + 0x16c]
mov edx, dword [esp + 0x15c]
cmp ecx, 0x10
lea ebp, [esp + 0x158]
jb 0x41daf0
test edx, edx
mov esi, edx
je 0x41d961
cmp ecx, 0x10
mov eax, edx
jae 0x41d949
lea eax, [esp + 0x15c]
cmp eax, esi
ja 0x41d961
cmp ecx, 0x10
mov eax, edx
jae 0x41d95b
lea eax, [esp + 0x15c]
add eax, ebx
cmp esi, eax
jbe 0x41d966
call fcn.0043471e
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.0041b610
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 0x41d9a9
lea eax, [esp + 0x140]
mov ebx, dword [esp + 0x150]
lea edi, [eax + ebx]
test edi, edi
je 0x41d9dd
cmp ecx, 0x10
mov eax, edx
jae 0x41d9c5
lea eax, [esp + 0x140]
cmp eax, edi
ja 0x41d9dd
cmp ecx, 0x10
mov eax, edx
jae 0x41d9d7
lea eax, [esp + 0x140]
add eax, ebx
cmp edi, eax
jbe 0x41d9f7
call fcn.0043471e
mov ecx, dword [esp + 0x154]
mov ebx, dword [esp + 0x150]
mov edx, dword [esp + 0x140]
cmp ecx, 0x10
lea ebp, [esp + 0x13c]
jb 0x41dafc
test edx, edx
mov esi, edx
je 0x41da33
cmp ecx, 0x10
mov eax, edx
jae 0x41da1b
lea eax, [esp + 0x140]
cmp eax, esi
ja 0x41da33
cmp ecx, 0x10
mov eax, edx
jae 0x41da2d
lea eax, [esp + 0x140]
add eax, ebx
cmp esi, eax
jbe 0x41da38
call fcn.0043471e
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.0041b610
mov ecx, dword [esp + 0x158]
mov esi, 0x10
add esp, 0x18
cmp dword [esp + 0x154], esi
jae 0x41da71
lea ecx, [esp + 0x140]
cmp dword [esp + 0x170], esi
mov eax, dword [esp + 0x15c]
jae 0x41da88
lea eax, [esp + 0x15c]
push ecx
push eax
call fcn.00434220
add esp, 8
test eax, eax
jne 0x41db08
cmp dword [esp + 0x154], esi
jb 0x41daaf
mov eax, dword [esp + 0x140]
push eax
call fcn.00433d63
add esp, 4
cmp dword [esp + 0x170], esi
mov dword [esp + 0x154], 0xf
mov dword [esp + 0x150], 0
mov byte [esp + 0x140], 0
jb 0x41dae6
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00433d63
add esp, 4
mov eax, 1
jmp 0x41e00e
lea esi, [esp + 0x15c]
jmp 0x41d93b
lea esi, [esp + 0x140]
jmp 0x41da0d
cmp dword [esp + 0x1190], 0
je 0x41db3d
cmp dword [esp + 0x154], esi
mov eax, dword [esp + 0x140]
jae 0x41db29
lea eax, [esp + 0x140]
push 0
push eax
call fcn.00419380
add esp, 8
cmp eax, 0xffffffff
jne 0x41de90
cmp dword [esp + 0x170], esi
mov eax, dword [esp + 0x15c]
jae 0x41db54
lea eax, [esp + 0x15c]
push 0x452538
push eax
call fcn.00436394
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
test edi, edi
mov bl, 4
mov byte [esp + 0x1180], bl
jne 0x41dcb6
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
mov eax, dword [esp + 0x15c]
mov esi, 0x10
cmp dword [esp + 0x170], esi
mov byte [esp + 0x1180], 5
jae 0x41dbaa
lea eax, [esp + 0x15c]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004044d0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 6
jb 0x41dbd8
mov eax, dword [eax + 4]
jmp 0x41dbdb
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x811
push str..common_function.cpp
push 0x803
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], bl
call fcn.00401b40
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
lea ecx, [esp + 0x3c]
push 0x452884
push ecx
mov byte [esp + 0x1188], 7
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x40]
call fcn.004044d0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 8
jb 0x41dc5c
mov eax, dword [eax + 4]
jmp 0x41dc5f
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x812
push str..common_function.cpp
push 0x803
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], bl
call fcn.00401b40
lea ecx, [esp + 0x13c]
call fcn.00403ce0
lea ecx, [esp + 0x158]
call fcn.00403ce0
jmp 0x41e00c
mov eax, dword [esp + 0x140]
mov esi, 0x10
cmp dword [esp + 0x154], esi
jae 0x41dcd2
lea eax, [esp + 0x140]
push 0x45253c
push eax
call fcn.00436394
mov ebp, eax
add esp, 8
mov dword [esp + 0x34], ebp
test ebp, ebp
mov byte [esp + 0x1180], 9
jne 0x41de21
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
cmp dword [esp + 0x154], esi
mov eax, dword [esp + 0x140]
mov byte [esp + 0x1180], 0xa
jae 0x41dd22
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x40]
call fcn.004044d0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 0xb
jb 0x41dd50
mov eax, dword [eax + 4]
jmp 0x41dd53
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x819
push str..common_function.cpp
push 0x803
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], 9
call fcn.00401b40
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
lea edx, [esp + 0x3c]
push 0x452868
push edx
mov byte [esp + 0x1188], 0xc
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004044d0
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 0xd
jb 0x41ddd5
mov eax, dword [eax + 4]
jmp 0x41ddd8
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x81a
push str..common_function.cpp
push 0x803
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1180], 9
call fcn.00401b40
push edi
call fcn.00435c8b
add esp, 4
jmp 0x41dc99
push edi
call fcn.00436a24
add esp, 4
test eax, eax
jne 0x41de81
mov ebx, dword [esp + 0x1194]
test ebx, ebx
je 0x41de3e
cmp dword [ebx], 0
jne 0x41de81
push edi
push 0x1000
lea ecx, [esp + 0x17c]
push 1
push ecx
call fcn.00435fa3
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x41de74
push ebp
push esi
lea edx, [esp + 0x17c]
push 1
push edx
call fcn.00436506
add esp, 0x10
cmp eax, esi
jne 0x41deb2
push edi
call fcn.00436a24
add esp, 4
test eax, eax
je 0x41de35
push ebp
call fcn.00435c8b
push edi
call fcn.00435c8b
add esp, 8
lea ecx, [esp + 0x13c]
call fcn.00403ce0
lea ecx, [esp + 0x158]
call fcn.00403ce0
mov eax, 1
jmp 0x41e00e
push 1
push 2
lea ecx, [esp + 0xc4]
call fcn.00404370
lea eax, [esp + 0xbc]
push 0x45285c
push eax
mov byte [esp + 0x1188], 0xe
call fcn.004073a0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc0]
call fcn.004044d0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1180], 0xf
jb 0x41df03
mov eax, dword [eax + 4]
jmp 0x41df06
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x82b
push str..common_function.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
lea ecx, [esp + 0x18]
call fcn.00403ce0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1180], 9
call fcn.00401b40
push ebp
call fcn.00435c8b
push edi
call fcn.00435c8b
add esp, 8
jmp 0x41dc99
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
lea edx, [esp + 0x3c]
push 0x452834
push edx
mov dword [esp + 0x1188], ebx
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.004044d0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x1180], 1
jb 0x41dfa3
mov eax, dword [eax + 4]
jmp 0x41dfa6
add eax, 4
push eax
push str.BaseLib::CxxSDCopyFile
push 0x7f9
push str..common_function.cpp
push 0x803
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x30], esi
jb 0x41dfda
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x1180], 0xffffffff
call fcn.00404450
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004339e9
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.00433d68
add esp, 0x1170
ret