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

Disassembly:
push 0xffffffffffffffff
push 0x44eace
mov eax, dword fs:[0]
push eax
mov eax, 0x1540
call fcn.004485b0
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x1538], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x1554]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1564]
mov ecx, dword [ebp + 0x2b8]
xor edx, edx
mov dword [esp + 0x1c], ebp
cmp ecx, edx
je 0x42002e
cmp dword [ebp + 0x1b0], edx
je 0x42002e
lea eax, [ebp + 0x2a4]
push eax
lea ecx, [esp + 0x30]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], edx
mov byte [edi], dl
mov eax, dword [esi + 0x18]
mov ebx, 0x10
cmp eax, ebx
jb 0x41f90a
mov ecx, dword [edi]
jmp 0x41f90c
mov ecx, edi
cmp ecx, 0x4555fc
ja 0x41f945
cmp eax, ebx
jb 0x41f91c
mov ecx, dword [edi]
jmp 0x41f91e
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
cmp edx, 0x4555fc
jbe 0x41f945
cmp eax, ebx
jb 0x41f931
mov edi, dword [edi]
push 2
mov eax, 0x4555fc
sub eax, edi
push eax
push esi
mov ecx, esi
call fcn.00402be0
jmp 0x41f987
cmp eax, 2
jae 0x41f957
mov ecx, dword [esi + 0x14]
push ecx
push 2
mov ecx, esi
call fcn.00403340
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jb 0x41f962
mov eax, dword [edi]
jmp 0x41f964
mov eax, edi
push 2
push 0x4555fc
push ecx
push eax
call fcn.00439ca9
add esp, 0x10
mov dword [esi + 0x14], 2
cmp dword [esi + 0x18], ebx
jb 0x41f983
mov edi, dword [edi]
mov byte [edi + 2], 0
lea esi, [esp + 0xc0]
call fcn.004014e0
mov ecx, eax
mov dword [esp + 0x1564], 2
call fcn.00401760
mov byte [esp + 0x1560], 3
cmp dword [eax + 0x18], ebx
jb 0x41f9b7
mov eax, dword [eax + 4]
jmp 0x41f9ba
add eax, 4
lea edx, [ebp + 0x19c]
push edx
mov edi, eax
lea esi, [esp + 0x50]
call fcn.004054c0
add esp, 4
push eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x1564], 4
call fcn.00405570
add esp, 8
push 0xffffffffffffffff
push 0
add ebp, 0x288
push eax
mov ecx, ebp
mov byte [esp + 0x1568], 5
call fcn.00402be0
cmp dword [esp + 0x7c], ebx
jb 0x41fa11
mov eax, dword [esp + 0x68]
push eax
call fcn.00439c49
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edi
mov byte [esp + 0x68], 0
cmp dword [esp + 0x60], ebx
jb 0x41fa38
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00439c49
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x44], ebx
jb 0x41fa58
mov edx, dword [esp + 0x30]
push edx
call fcn.00439c49
add esp, 4
mov dword [esp + 0x44], esi
lea esi, [esp + 0x9c]
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x155c], 0xffffffff
call fcn.004037a0
push edi
call fcn.0043af41
add esp, 4
cmp dword [ebp + 0x18], ebx
jb 0x41fa8f
mov eax, dword [ebp + 4]
jmp 0x41fa92
lea eax, [ebp + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41fb97
lea eax, [esp + 0x24]
push eax
push edi
push edi
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, edi
je 0x41fb97
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edi
push 0x989680
push ecx
push eax
call fcn.00443800
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, 0xb6109100
sbb edx, 2
push 0xfff
mov dword [eax + 0x284], edx
lea edx, [esp + 0x551]
push edi
push edx
mov dword [eax + 0x280], ecx
mov byte [esp + 0x558], 0
call fcn.00440440
add esp, 0xc
mov dword [esp + 0x18], edi
call fcn.00430f00
test eax, eax
je 0x41fb35
call fcn.00418a30
push 0
lea eax, [esp + 0x1c]
push eax
push 0xa
lea ecx, [esp + 0x558]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call fcn.00436780
mov ecx, eax
mov eax, 0xb81702e1
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xb2
jle 0x41fb85
push 0xb2
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00406e10
call fcn.00431550
test edi, edi
jne 0x41ffe5
cmp dword [esp + 0x18], edi
jne 0x41ffe5
cmp esi, edi
je 0x41fba2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00439c27
cdq
mov ecx, 0xff
idiv ecx
mov edi, edx
shl edi, 8
call fcn.00439c27
cdq
mov ecx, 0xff
idiv ecx
mov esi, edx
add esi, edi
shl esi, 8
call fcn.00439c27
cdq
mov ecx, 0xff
idiv ecx
mov edi, edx
add edi, esi
shl edi, 8
call fcn.00439c27
cdq
mov ecx, 0xff
idiv ecx
push 0x3ff
lea eax, [esp + 0x151]
push 0
push eax
mov byte [esp + 0x158], 0
lea esi, [edx + edi]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x1f4], esi
call fcn.00440440
add esp, 0xc
push 0xa
push 0x400
lea ecx, [esp + 0x154]
push ecx
push esi
call fcn.0043b923
lea eax, [esp + 0x15c]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41fc37
mov edi, dword [esp + 0x1c]
sub eax, ecx
push eax
lea edx, [esp + 0x150]
lea esi, [edi + 0x1f8]
push edx
mov ecx, esi
call fcn.00402f50
cmp dword [ebp + 0x18], 0x10
jb 0x41fc65
mov eax, dword [ebp + 4]
jmp 0x41fc68
lea eax, [ebp + 4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x41fdeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, ebp
mov edi, esp
sub esp, 0x1c
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, esp
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], 0
mov byte [edi], 0
mov eax, dword [esi + 0x18]
mov ebx, 0x10
lea ebp, [esp + 0x68]
mov dword [esp + 0x54], esp
cmp eax, ebx
jb 0x41fcd0
mov ecx, dword [edi]
jmp 0x41fcd2
mov ecx, edi
cmp ecx, 0x456f14
ja 0x41fd0b
cmp eax, ebx
jb 0x41fce2
mov ecx, dword [edi]
jmp 0x41fce4
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
cmp edx, 0x456f14
jbe 0x41fd0b
cmp eax, ebx
jb 0x41fcf7
mov edi, dword [edi]
push 0x26
mov eax, 0x456f14
sub eax, edi
push eax
push esi
mov ecx, esi
call fcn.00402be0
jmp 0x41fd4d
cmp eax, 0x26
jae 0x41fd1d
mov ecx, dword [esi + 0x14]
push ecx
push 0x26
mov ecx, esi
call fcn.00403340
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jb 0x41fd28
mov eax, dword [edi]
jmp 0x41fd2a
mov eax, edi
push 0x26
push 0x456f14
push ecx
push eax
call fcn.00439ca9
add esp, 0x10
mov dword [esi + 0x14], 0x26
cmp dword [esi + 0x18], ebx
jb 0x41fd49
mov edi, dword [edi]
mov byte [edi + 0x26], 0
lea esi, [esp + 0xd8]
call fcn.004014e0
mov edx, ebp
mov ecx, eax
mov dword [esp + 0x157c], 6
call fcn.00401a80
mov byte [esp + 0x157c], 7
cmp dword [eax + 0x18], ebx
jb 0x41fd7f
mov eax, dword [eax + 4]
jmp 0x41fd82
add eax, 4
mov edx, dword [esp + 0x3c]
push eax
push 1
push edx
call fcn.0041da70
add esp, 0x2c
cmp dword [esp + 0x44], ebx
jb 0x41fda5
mov eax, dword [esp + 0x30]
push eax
call fcn.00439c49
add esp, 4
lea esi, [esp + 0x9c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.004037a0
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fdd2
sub eax, edx
je 0x42014b
call fcn.00406ed0
jmp 0x42014b
lea eax, [esp + 0x17]
mov dword [esp + 0x20], 0
mov byte [esp + 0x17], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fe00
sub eax, edx
mov eax, 0
setne al
sub eax, 1
jne 0x41fe20
call fcn.00406ed0
call fcn.00418ac0
call fcn.00436730
mov ecx, eax
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xe4
jle 0x41fe57
push 0xe4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00431240
call fcn.00418b60
cmp dword [esi + 0x18], 0x10
mov ecx, dword [edi + 0x20c]
jb 0x41fe68
mov eax, dword [esi + 4]
jmp 0x41fe6b
lea eax, [esi + 4]
mov esi, dword [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fe8e
cmp dword [esp + 0x20], 0
jne 0x41ffc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, ebp
mov edi, esp
sub esp, 0x1c
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, esp
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], 0
mov byte [edi], 0
mov eax, dword [esi + 0x18]
mov ebx, 0x10
lea ebp, [esp + 0xbc]
mov dword [esp + 0x60], esp
cmp eax, ebx
jb 0x41fed7
mov ecx, dword [edi]
jmp 0x41fed9
mov ecx, edi
cmp ecx, 0x456f3c
ja 0x41ff12
cmp eax, ebx
jb 0x41fee9
mov ecx, dword [edi]
jmp 0x41feeb
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
cmp edx, 0x456f3c
jbe 0x41ff12
cmp eax, ebx
jb 0x41fefe
mov edi, dword [edi]
push 0x24
mov eax, 0x456f3c
sub eax, edi
push eax
push esi
mov ecx, esi
call fcn.00402be0
jmp 0x41ff54
cmp eax, 0x24
jae 0x41ff24
mov ecx, dword [esi + 0x14]
push ecx
push 0x24
mov ecx, esi
call fcn.00403340
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jb 0x41ff2f
mov eax, dword [edi]
jmp 0x41ff31
mov eax, edi
push 0x24
push 0x456f3c
push ecx
push eax
call fcn.00439ca9
add esp, 0x10
mov dword [esi + 0x14], 0x24
cmp dword [esi + 0x18], ebx
jb 0x41ff50
mov edi, dword [edi]
mov byte [edi + 0x24], 0
lea esi, [esp + 0x130]
call fcn.004014e0
mov edx, ebp
mov ecx, eax
mov dword [esp + 0x157c], 8
call fcn.00401a80
mov byte [esp + 0x157c], 9
cmp dword [eax + 0x18], ebx
jb 0x41ff86
mov eax, dword [eax + 4]
jmp 0x41ff89
add eax, 4
mov edx, dword [esp + 0x3c]
push eax
push 1
push edx
call fcn.0041da70
add esp, 0x2c
lea ecx, [esp + 0x80]
call fcn.004029a0
lea esi, [esp + 0xf4]
call fcn.004037a0
call fcn.00417ab0
mov dword [esp + 0x155c], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41ffde
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404360
test eax, eax
je 0x41ffde
call fcn.00431240
xor eax, eax
jmp 0x420150
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.0043af41
mov esi, dword [esp + 0x20]
add esp, 4
lea eax, [esp + 0x54c]
push eax
lea ecx, [esi + 0x1f8]
call fcn.00402cc0
push 0
lea ecx, [esp + 0x550]
push 0
push ecx
call fcn.0043bc47
add esp, 0xc
mov dword [esi + 0x1f4], eax
xor eax, eax
jmp 0x420150
mov eax, dword [ebp + 0x1b0]
push eax
push ecx
lea eax, [esp + 0x34]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], edx
mov byte [edi], dl
mov eax, dword [esi + 0x18]
mov ebx, 0x10
mov dword [esp + 0x4c], esp
cmp eax, ebx
jb 0x420063
mov ecx, dword [edi]
jmp 0x420065
mov ecx, edi
cmp ecx, 0x456ef0
ja 0x42009e
cmp eax, ebx
jb 0x420075
mov ecx, dword [edi]
jmp 0x420077
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
cmp edx, 0x456ef0
jbe 0x42009e
cmp eax, ebx
jb 0x42008a
mov edi, dword [edi]
push 0x21
mov eax, 0x456ef0
sub eax, edi
push eax
push esi
mov ecx, esi
call fcn.00402be0
jmp 0x4200e0
cmp eax, 0x21
jae 0x4200b0
mov ecx, dword [esi + 0x14]
push ecx
push 0x21
mov ecx, esi
call fcn.00403340
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jb 0x4200bb
mov eax, dword [edi]
jmp 0x4200bd
mov eax, edi
push 0x21
push 0x456ef0
push ecx
push eax
call fcn.00439ca9
add esp, 0x10
mov dword [esi + 0x14], 0x21
cmp dword [esi + 0x18], ebx
jb 0x4200dc
mov edi, dword [edi]
mov byte [edi + 0x21], 0
lea esi, [esp + 0xc4]
call fcn.004014e0
xor esi, esi
mov dword [esp + 0x1568], esi
call fcn.004015b0
mov byte [esp + 0x1564], 1
cmp dword [eax + 0x18], ebx
jb 0x42010c
mov eax, dword [eax + 4]
jmp 0x42010f
add eax, 4
push eax
push 1
push ebp
call fcn.0041da70
add esp, 0x14
cmp dword [esp + 0x44], ebx
jb 0x42012e
mov edx, dword [esp + 0x30]
push edx
call fcn.00439c49
add esp, 4
mov dword [esp + 0x40], esi
lea esi, [esp + 0x9c]
mov dword [esp + 0x44], 0xf
mov byte [esp + 0x30], 0
call fcn.004037a0
mov eax, 0x80004005
mov ecx, dword [esp + 0x1554]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1538]
xor ecx, esp
call fcn.00439641
add esp, 0x154c
ret 4