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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov eax, esi
mov dword [ebp - 0x70], ecx
mov ebx, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x58], eax
push edi
mov edi, esi
mov dword [ebp - 0x44], edi
test edx, edx
je 0x10002a2a
test ecx, ecx
je 0x10002a2a
cmp dword [ebp - 0x80], eax
je 0x10002a2a
push 0x1006f6a0
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.1004a893
add esp, 0xc
test eax, eax
jne 0x100029c0
push 2
push esi
push dword [ebp - 0x3c]
call fcn.1004af87
add esp, 0xc
test eax, eax
jne 0x100029c0
push dword [ebp - 0x3c]
call fcn.1004b4f9
mov dword [ebp - 0x54], eax
pop ecx
test eax, eax
je 0x100029c0
push esi
push esi
push dword [ebp - 0x3c]
call fcn.1004af87
add esp, 0xc
test eax, eax
jne 0x100029c0
cmp dword [ebp - 0x54], 0x20
jb 0x100029c0
push dword [ebp - 0x3c]
inc eax
push 0x20
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1004ab9c
add esp, 0x10
cmp eax, 0x20
jne 0x100029c0
push 8
lea eax, [ebp - 0x2c]
push str.QHDIFF01
push eax
call fcn.10047295
add esp, 0xc
test eax, eax
jne 0x100029c0
lea eax, [ebp - 0x24]
push eax
call fcn.10002af1
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10002af1
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002af1
mov edi, dword [ebp - 0x70]
push edi
push dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x74]
push 0x20
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10002a3b
add esp, 0x20
mov dword [ebp - 0x64], eax
test eax, eax
je 0x100029bd
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x78]
push edi
push dword [ebp - 0x48]
lea ecx, [ebx + 0x20]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10002a3b
add esp, 0x14
mov dword [ebp - 0x68], eax
test eax, eax
je 0x100029ba
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
sub eax, ecx
sub eax, ebx
sub eax, 0x20
push edi
push eax
lea eax, [ecx + 0x20]
add eax, ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10002a3b
add esp, 0x14
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x100029b4
push dword [ebp - 0x3c]
call fcn.1004a950
pop ecx
cmp eax, 0xffffffff
je 0x100029b4
push 0x1006f6a0
push dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
push eax
call fcn.1004a893
add esp, 0xc
test eax, eax
jne 0x100029b4
push 2
push esi
push dword [ebp - 0x3c]
call fcn.1004af87
add esp, 0xc
test eax, eax
jne 0x100029b4
push dword [ebp - 0x3c]
call fcn.1004b4f9
mov ebx, eax
mov dword [ebp - 0x84], ebx
pop ecx
cmp ebx, 0xffffffff
je 0x100029b4
lea ecx, [ebx + 1]
push ecx
call fcn.1004a7c7
mov edi, eax
mov dword [ebp - 0x70], edi
pop ecx
test edi, edi
je 0x100029b4
push esi
push esi
push dword [ebp - 0x3c]
call fcn.1004af87
add esp, 0xc
test eax, eax
jne 0x1000299d
push dword [ebp - 0x3c]
push ebx
push 1
push edi
call fcn.1004ab9c
add esp, 0x10
cmp eax, ebx
jne 0x1000299d
push dword [ebp - 0x3c]
call fcn.1004a950
pop ecx
cmp eax, 0xffffffff
je 0x1000299d
mov ebx, dword [ebp - 0x5c]
lea eax, [ebx + 1]
push eax
call fcn.1004a7c7
mov dword [ebp - 0x54], eax
pop ecx
test eax, eax
je 0x1000299d
mov edi, dword [ebp - 0x44]
test ebx, ebx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], eax
je 0x100028b2
mov dword [ebp - 0x58], esi
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.10002aad
add esp, 0x10
test eax, eax
js 0x10002992
cmp eax, 8
jl 0x10002992
lea eax, [ebp - 0xc]
push eax
call fcn.10002af1
pop ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp + ecx*4 - 0x38], eax
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, 2
jle 0x100027b3
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
lea edx, [eax + ecx]
mov dword [ebp - 0x4c], edx
cmp edx, dword [ebp - 0x5c]
ja 0x10002992
add ecx, dword [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
push eax
push ebx
call fcn.10002aad
add esp, 0x10
test eax, eax
js 0x10002992
mov edx, dword [ebp - 0x38]
cmp eax, edx
jne 0x10002992
mov ecx, esi
test edx, edx
jle 0x1000285e
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x70]
lea eax, [ecx + esi]
cmp eax, dword [ebp - 0x84]
jae 0x10002851
lea eax, [ecx + esi]
mov al, byte [eax + ebx]
add byte [edi + ecx], al
inc ecx
cmp ecx, edx
jl 0x1000283d
mov edi, dword [ebp - 0x44]
xor esi, esi
mov ebx, dword [ebp - 0x50]
add dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + edx]
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x5c]
ja 0x10002992
mov eax, dword [ebp - 0x54]
push ecx
add eax, edx
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x40]
call fcn.10002aad
add esp, 0x10
test eax, eax
js 0x10002992
cmp eax, dword [ebp - 0x34]
jne 0x10002992
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x4c], eax
jb 0x100027b0
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.10002aad
add esp, 0x10
test eax, eax
jne 0x10002992
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.10002aad
add esp, 0x10
test eax, eax
jne 0x10002992
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x40]
call fcn.10002aad
add esp, 0x10
test eax, eax
jne 0x10002992
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.10003ab3
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.10003ab3
push dword [ebp - 0x40]
lea eax, [ebp - 0x60]
mov ebx, esi
push eax
mov edi, esi
call fcn.10003ab3
mov eax, dword [ebp - 0x64]
push eax
mov dword [ebp - 0x40], esi
call fcn.1004a950
mov eax, dword [ebp - 0x68]
push eax
call fcn.1004a950
mov eax, dword [ebp - 0x6c]
push eax
call fcn.1004a950
push 0x1006f6b4
push dword [ebp - 0x80]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x6c], esi
push eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.1004a893
add esp, 0x18
test eax, eax
jne 0x10002992
push dword [ebp - 0x3c]
push dword [ebp - 0x5c]
push 1
push dword [ebp - 0x54]
call fcn.1004b73c
add esp, 0x10
cmp eax, dword [ebp - 0x5c]
jne 0x10002992
push dword [ebp - 0x3c]
call fcn.1004a950
pop ecx
cmp eax, 0xffffffff
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x54]
call fcn.1004a7c2
pop ecx
jmp 0x100029a9
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x70]
call fcn.1004a7c2
pop ecx
jmp 0x100029c0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x44]
cmp dword [ebp - 0x3c], 0
je 0x100029cf
push dword [ebp - 0x3c]
call fcn.1004a950
pop ecx
test edi, edi
je 0x100029dd
push edi
lea eax, [ebp - 0x60]
push eax
call fcn.10003ab3
test ebx, ebx
je 0x100029eb
push ebx
lea eax, [ebp - 0x60]
push eax
call fcn.10003ab3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x100029fc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10003ab3
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x10002a0a
push eax
call fcn.1004a950
pop ecx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10002a18
push eax
call fcn.1004a950
pop ecx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10002a26
push eax
call fcn.1004a950
pop ecx
mov eax, esi
jmp 0x10002a2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041739
leave
ret