Function at 0x445150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d6778
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x63a800]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x44], 0xffffffff
je 0x445499
cmp dword [ebp + 0x24], 1
jbe 0x44519d
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, word [esi + 0x4e]
cmp eax, 0x36
jae 0x4451d7
imul eax, eax, 0x68
lea ecx, [eax + 0x642c8c]
mov eax, dword [ecx]
cmp eax, dword [esi + 0x44]
je 0x4451d7
mov dword [esi + 0x44], eax
movzx eax, word [esi + 0x4c]
cmp eax, 0x36
jae 0x4451d7
mov ecx, dword [ecx]
imul eax, eax, 0x68
cmp ecx, dword [eax + 0x642c8c]
lea eax, [eax + 0x642c8c]
je 0x4451d7
mov dword [eax], ecx
movzx eax, word [esi + 0x4e]
cmp eax, 0x36
jae 0x445211
imul eax, eax, 0x68
lea ecx, [eax + 0x642c90]
mov eax, dword [ecx]
cmp eax, dword [esi + 0x48]
je 0x445211
mov dword [esi + 0x48], eax
movzx eax, word [esi + 0x4c]
cmp eax, 0x36
jae 0x445211
mov ecx, dword [ecx]
imul eax, eax, 0x68
cmp ecx, dword [eax + 0x642c90]
lea eax, [eax + 0x642c90]
je 0x445211
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x445499
cmp dword [ebp + 0x1c], 0
je 0x445499
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
xor eax, eax
mov ecx, edi
add ecx, dword [ebp + 8]
adc eax, ebx
mov dword [esp + 0x20], eax
cmp ebx, edx
ja 0x445499
jb 0x445250
mov eax, dword [esi]
cmp dword [ebp + 8], eax
jae 0x445499
cmp dword [esp + 0x20], edx
ja 0x445499
jb 0x445264
cmp ecx, dword [esi]
ja 0x445499
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push ecx
mov ebx, edi
mov edi, dword [ebp + 0x14]
push eax
push ebx
mov dword [esp + 0x30], eax
call fcn.005c43b0
or eax, edx
je 0x4452b5
mov ecx, dword [esi + 0x1c]
mov eax, ebx
xor edx, edx
div ecx
mov dword [esp + 0x20], 0
lea ebx, [eax + 1]
imul ebx, ecx
push ebx
call fcn.004898a6
mov edi, eax
add esp, 4
test edi, edi
je 0x445499
push ebx
push 0
push edi
call fcn.005afd80
add esp, 0xc
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esi + 0x44]
push eax
push ecx
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x98], 0xffffffff
je 0x445314
mov edx, dword [ebp + 0x18]
cmp ebx, edx
jne 0x4452f8
xor ecx, ecx
cmp dword [esp + 0x20], ecx
je 0x445314
mov ebx, dword [ebp + 0x14]
push edx
push edi
push ebx
call fcn.005ae670
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
jmp 0x445317
mov ebx, dword [ebp + 0x14]
cmp edi, ebx
je 0x44532c
test edi, edi
je 0x44532c
push edi
call fcn.0048989b
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x44560a
mov ecx, dword [esi + 0x50]
cmp eax, 0x15
je 0x4455e3
cmp ecx, 8
je 0x4455e3
cmp ecx, 9
je 0x4455e3
cmp eax, 0x1b
je 0x4455e3
cmp eax, 0x1e
je 0x4455e3
cmp eax, 0x467
je 0x4455e3
cmp eax, 0x84
je 0x4455e3
cmp eax, 0x1ac1
je 0x4455e3
cmp eax, 0x1e3
je 0x4455e3
cmp eax, 0x17
je 0x4455e3
cmp eax, 0x19
je 0x4455e3
cmp eax, 0x79
je 0x4455e3
cmp eax, 0x3ee
je 0x44542c
cmp eax, 0x456
je 0x44542c
cmp eax, 0x458
je 0x44542c
cmp eax, 0x48f
je 0x44542c
cmp eax, 2
je 0x44542c
cmp eax, 0x37
je 0x44542c
cmp eax, 0x6b
je 0x44542c
cmp eax, 0x6c
je 0x44542c
cmp eax, 0x6f9
je 0x44542c
cmp eax, 0x571
je 0x44542c
cmp eax, 0x651
je 0x44542c
cmp eax, 0x10cc
je 0x44542c
cmp eax, 0x10cf
je 0x44542c
cmp eax, 0x10d0
je 0x44542c
cmp eax, 0x10d4
je 0x44542c
cmp eax, 0x10de
je 0x44542c
cmp eax, 0x10df
je 0x44542c
cmp eax, 0x10e3
je 0x44542c
cmp eax, 0x10fe
jne 0x445499
cmp dword [esi + 0x48], 0
mov edi, dword [ebp + 0x24]
jne 0x44543a
cmp edi, 1
jb 0x4454b6
push eax
call fcn.00444c50
add esp, 4
cmp eax, 2
jne 0x4454b1
movzx eax, word [esi + 0x4e]
mov dword [esi + 0x48], 0
cmp eax, 0x36
jae 0x445499
imul eax, eax, 0x68
cmp dword [eax + 0x642c90], 0
lea eax, [eax + 0x642c90]
je 0x445499
mov dword [eax], 0
movzx eax, word [esi + 0x4c]
cmp eax, 0x36
jae 0x445499
movzx edx, word [esi + 0x4e]
imul eax, eax, 0x68
imul edx, edx, 0x68
mov ecx, dword [edx + 0x642c90]
cmp ecx, dword [eax + 0x642c90]
lea eax, [eax + 0x642c90]
je 0x445499
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 7
je 0x445499
lea ecx, [esp + 0x24]
call fcn.004012e0
sub esp, 0x68
mov eax, esp
mov dword [esp + 0x80], esp
push eax
mov ecx, esi
mov dword [esp + 0x104], 2
call fcn.00401150
lea ecx, [esp + 0x8c]
push ecx
call fcn.00445630
add esp, 0x6c
test eax, eax
jne 0x445595
movzx ebx, word [esp + 0x72]
imul ebx, ebx, 0x68
add ebx, 0x642c48
lea eax, [esp + 0x24]
call fcn.004010b0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x68]
push 0
push 0
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
mov dword [esi + 0x44], edx
call fcn.00444d10
add esp, 0x14
cmp eax, 0xffffffff
je 0x445574
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
inc edi
push edi
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push esi
push eax
push ecx
call fcn.00445150
add esp, 0x20
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004016a0
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
call fcn.004016a0
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], 0
jne 0x4455a0
cmp edi, 1
jb 0x445574
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
inc edi
push edi
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push esi
push edx
push eax
call fcn.00445150
add esp, 0x20
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004016a0
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push ebx
call fcn.005afd80
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret