Function at 0x423260
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f53c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c7084]
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
cmp dword [edi + 0x138], 0
jne 0x4232a6
cmp dword [edi + 0x194], 0
je 0x423612
cmp dword [edi + 0xb0], 0
jne 0x423612
lea ecx, [ebp - 0x28]
call fcn.00401770
mov ecx, dword [ebp - 0x38]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
nop dword [eax]
lea ecx, [ebp - 0x28]
call fcn.00408930
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x90]
mov ebx, dword [ebx]
cmp ebx, esi
ja 0x42332c
lea ecx, [ebp - 0x28]
call fcn.004091d0
cmp dword [eax], esi
je 0x42332c
push 1
push esi
lea ecx, [ebp - 0x28]
call fcn.00409260
test al, al
je 0x42332c
lea ecx, [ebp - 0x28]
call fcn.004015a0
mov byte [ebp - 0x29], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x42331d
mov eax, dword [eax]
lea ecx, [ebp - 0x29]
add eax, ebx
push ecx
push eax
call fcn.00402090
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004269c0
test eax, eax
jle 0x4235f4
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.00425060
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ebx, dword [eax + 8]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x423383
or eax, 0xffffffff
lock xadd dword [esi], eax
jne 0x423383
test esi, esi
je 0x423383
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x423378
mov eax, dword [ecx]
push 1
call dword [eax]
push 8
push esi
call fcn.0044b9fd
add esp, 8
cmp ebx, 0xc8
jl 0x4235fd
cmp ebx, 0x12c
jge 0x4235fd
cmp dword [edi + 0x138], 0
je 0x4234bf
push 0xc
call fcn.0044ba2e
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
mov ecx, eax
push 0
call fcn.004225b0
mov ebx, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 4
lea eax, [edi + 0x130]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0
cmp ecx, eax
je 0x42340a
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x42340a
mov dword [eax + 4], ecx
lock inc dword [eax]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 5
push eax
mov ecx, ebx
call fcn.004240d0
push 0x1c
call fcn.0044ba2e
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 5
mov dword [esi], vtable.pcutil::CAny::placeholder.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 4]
mov dword [esi], vtable.pcutil::CAny::holder_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
call fcn.00408950
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x50], ecx
mov dword [ebx + 4], esi
mov byte [ebp - 4], 4
test ecx, ecx
je 0x42346d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x138]
test eax, eax
je 0x423486
mov byte [eax + 4], 0
mov ecx, dword [edi + 0x138]
push ebx
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4235cf
or eax, 0xffffffff
lock xadd dword [esi], eax
jne 0x4235cf
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4234af
mov eax, dword [ecx]
push 1
call dword [eax]
push 8
push esi
call fcn.0044b9fd
add esp, 8
jmp 0x4235cf
mov ebx, dword [edi + 0x194]
test ebx, ebx
je 0x4235cf
lea ecx, [ebp - 0x28]
call fcn.00401750
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00401760
push 0
lea ecx, [ebp - 0x74]
push ecx
push esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4234f8
call fcn.00422190
cmp dword [edi + 0x184], 0
je 0x4235cf
mov eax, dword [edi + 0x194]
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x42352b
call fcn.00422190
test eax, eax
js 0x423534
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.00425060
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [eax]
call fcn.00429a30
mov ebx, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
add ebx, dword [eax]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x42359b
or eax, 0xffffffff
lock xadd dword [esi], eax
jne 0x42359b
test esi, esi
je 0x42359b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42358d
mov eax, dword [ecx]
push 1
call dword [eax]
push 8
push esi
call fcn.0044b9fd
mov ecx, dword [ebp - 0x54]
add esp, 8
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jb 0x4235cf
ja 0x4235a9
cmp ebx, dword [ebp - 0x30]
jbe 0x4235cf
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edi + 0x184]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4235ef
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
lea edx, [ebp - 0x3c]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408790
cmp dword [edi + 0xb0], 0
jne 0x423612
mov ebx, dword [ebp - 0x58]
jmp 0x4232d0
call fcn.0044809b
jne 0x4235fd
mov esi, 1
jmp 0x4235ff
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408790
mov eax, esi
jmp 0x423614
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 - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret