Function at 0x10034800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c201
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1008b008]
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 ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xd0], eax
call fcn.10036c30
mov eax, dword [ebx]
push 0x80
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0xd0]
push 3
push ecx
push 0
mov ecx, edi
mov byte [ebx], 0
call fcn.100028e0
mov edx, 0x80000000
mov ecx, eax
call fcn.100325a0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x100349e3
test esi, esi
je 0x100349e3
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xec]
movlpd qword [ebp - 0xf8], xmm0
push eax
lea eax, [ebp - 0xf8]
movlpd qword [ebp - 0xec], xmm0
push eax
push edi
movlpd qword [ebp - 0x110], xmm0
call fcn.10035e20
test al, al
je 0x10034984
mov edi, dword [ebp - 0xf8]
mov ecx, edi
mov ebx, dword [ebp - 0xf4]
add ecx, 0xffffffff
mov eax, ebx
adc eax, 0xffffffff
test eax, eax
ja 0x1003497e
jb 0x10034926
cmp ecx, 0x4ffffe
ja 0x1003497e
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edi
call fcn.100125e0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push edi
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp ecx, ebx
ja 0x1003497e
jb 0x10034965
cmp eax, edi
jae 0x1003497e
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.100125e0
mov ebx, dword [ebp - 0xd0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x10034a03
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100349e3
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100349c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push edx
push ecx
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor al, al
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.10045825
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.1003f280
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.1003f550
test al, al
jne 0x10034aab
mov byte [ebx], 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x10034993
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10034a87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035497
push edx
push ecx
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x10034993
mov eax, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x34]
mov ecx, 0x3e8
sub eax, esi
div ecx
mov edi, eax
mov dword [ebp - 0xd8], edi
test edx, edx
je 0x10034afe
mov byte [ebx], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x10034993
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10034afa
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push ecx
push esi
jmp 0x10034a89
test edi, edi
jne 0x10034ba7
mov byte [ebp - 4], 0
test esi, esi
je 0x10034b50
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10034b31
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push ecx
push esi
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10034ba0
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10034b81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push edx
push ecx
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, 1
jmp 0x100349e5
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push edi
mov ecx, eax
call fcn.10036660
imul eax, edi, 0x3e8
push eax
push esi
push dword [ebp - 0x28]
call fcn.10048810
mov ebx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x24]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10034c6d
xor edi, edi
cmp dword [ebx + edi], 0x23ab45db
jne 0x10034cc8
inc dword [ebp - 0xd4]
xor eax, eax
mov word [ebx + edi + 0x282], ax
mov word [ebx + edi + 0x382], ax
mov word [ebx + edi + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x24]
add edi, 0x3e8
mov ebx, dword [ebp - 0x28]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xd4], eax
jb 0x10034c13
mov edi, dword [ebp - 0xd8]
mov esi, dword [ebp - 0xf0]
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x10034d46
mov dword [ebp - 0xd8], 0x2762762
call fcn.10002364
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.10002ac0
add esp, 8
mov eax, dword [eax]
cmp edi, eax
ja 0x1003549c
jmp 0x10034d3e
mov eax, dword [ebp - 0xd0]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10034acb
mov ecx, dword [ebp - 0x20]
mov eax, 0x10624dd3
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, edi
cmp ecx, 0x1000
jb 0x10034d1a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push ecx
push edi
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x10034acb
push edi
mov ecx, esi
call fcn.10036390
lea ecx, [ebp - 0xa0]
call fcn.10032990
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub ecx, esi
imul ecx
mov dword [ebp - 0xdc], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100353d8
lea ecx, [ebp - 0xa0]
call fcn.100029a0
xor ebx, ebx
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd8], ebx
nop word [eax + eax]
lea eax, [esi + ebx]
mov dword [ebp - 0xc8], eax
add eax, 4
push eax
call fcn.10002ab7
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xd4]
mov ebx, dword [eax + 0x14]
cmp edi, ebx
ja 0x10034e03
mov esi, eax
cmp ebx, 8
jb 0x10034dcd
mov esi, dword [eax]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0xc8]
push edi
add eax, 4
push eax
push esi
call fcn.10002a85
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [esi + edi*2]
push eax
call fcn.10002a74
add esp, 0x14
jmp 0x10034f72
lea ecx, [ebp - 0xa0]
call fcn.10002ee1
cmp edi, eax
ja 0x1003548d
lea ecx, [ebp - 0xa0]
call fcn.10002ee1
lea ecx, [ebp - 0xa0]
mov esi, eax
call fcn.100029a0
mov ecx, edi
or ecx, 7
mov dword [ebp - 0x100], ecx
cmp ecx, esi
ja 0x10034e6d
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10034e6d
lea eax, [ecx + edx]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10034e7f
or ecx, 0xffffffff
jmp 0x10034e87
cmp ecx, 0x1000
jb 0x10034eb2
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a3f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10035492
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10034ec3
test ecx, ecx
je 0x10034ec1
push ecx
call fcn.10045a3f
add esp, 4
jmp 0x10034ec3
xor eax, eax
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xd4]
push edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
mov eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xe0]
add eax, 4
push eax
push esi
call fcn.10002a9e
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [esi + edi*2]
push eax
call fcn.10002a74
mov edi, dword [ebp - 0xd4]
add esp, 0x14
cmp ebx, 8
jb 0x10034f4f
mov eax, dword [edi]
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x10034f3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
mov eax, edx
push ecx
push eax
call fcn.10045a6f
mov eax, dword [ebp - 0xe0]
add esp, 8
mov dword [edi], eax
jmp 0x10034f72
push edi
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov esi, eax
lea eax, [ebp - 0xe0]
push eax
call fcn.10002bc4
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [ebp - 0xc8]
add eax, 0x284
push eax
call fcn.10002ab7
add esp, 4
lea ecx, [ebp - 0x88]
mov ebx, eax
call fcn.100029a0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xe8], eax
cmp ebx, eax
ja 0x10034fe3
mov esi, edi
cmp eax, 8
jb 0x10034fab
mov esi, dword [edi]
mov eax, dword [ebp - 0xc8]
push ebx
add eax, 0x284
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10002a85
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
add esp, 0x14
jmp 0x1003514e
lea ecx, [ebp - 0x88]
call fcn.10002ee1
cmp ebx, eax
ja 0x1003548d
lea ecx, [ebp - 0x88]
call fcn.10002ee1
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.100029a0
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x108], ecx
cmp ecx, esi
ja 0x1003504d
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003504d
lea eax, [ecx + edx]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1003505f
or ecx, 0xffffffff
jmp 0x10035067
cmp ecx, 0x1000
jb 0x10035092
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a3f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10035492
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100350a3
test ecx, ecx
je 0x100350a1
push ecx
call fcn.10045a3f
add esp, 4
jmp 0x100350a3
xor eax, eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xc8]
push ebx
add eax, 0x284
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0xe4]
push eax
push esi
call fcn.10002a9e
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
mov ecx, dword [ebp - 0xe8]
add esp, 0x14
cmp ecx, 8
jb 0x1003512b
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10035117
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
mov eax, edx
push ecx
push eax
call fcn.10045a6f
mov eax, dword [ebp - 0xe4]
add esp, 8
mov dword [edi], eax
jmp 0x1003514e
push edi
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov esi, eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10002bc4
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx + 0x3cc]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 0x3d0]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x3d4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x3d8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x3dc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x3e0]
mov dword [ebp - 0x44], eax
lea eax, [ecx + 0x384]
push eax
call fcn.10002ab7
add esp, 4
lea ecx, [ebp - 0x70]
mov ebx, eax
call fcn.100029a0
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xcc], eax
cmp ebx, eax
ja 0x100351f3
mov esi, edi
cmp eax, 8
jb 0x100351bb
mov esi, dword [edi]
mov eax, dword [ebp - 0xc8]
push ebx
add eax, 0x384
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10002a85
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
add esp, 0x14
jmp 0x10035349
lea ecx, [ebp - 0x70]
call fcn.10002ee1
cmp ebx, eax
ja 0x1003548d
lea ecx, [ebp - 0x70]
call fcn.10002ee1
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.100029a0
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0xf4], ecx
cmp ecx, esi
ja 0x10035254
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10035254
lea eax, [ecx + edx]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10035266
or ecx, 0xffffffff
jmp 0x1003526e
cmp ecx, 0x1000
jb 0x10035299
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a3f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10035492
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100352aa
test ecx, ecx
je 0x100352a8
push ecx
call fcn.10045a3f
add esp, 4
jmp 0x100352aa
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc8]
push ebx
add eax, 0x384
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x38]
push eax
push esi
call fcn.10002a9e
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10002a74
mov ecx, dword [ebp - 0xcc]
add esp, 0x14
cmp ecx, 8
jb 0x10035329
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10035318
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
mov eax, edx
push ecx
push eax
call fcn.10045a6f
mov eax, dword [ebp - 0x38]
add esp, 8
mov dword [edi], eax
jmp 0x10035349
push edi
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call fcn.10002bc4
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [ebp - 0xc8]
mov ebx, dword [ebp - 0xf0]
mov eax, dword [eax + 0x3e4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 4]
mov byte [ebp - 0x3c], 0
cmp dword [ebx + 8], eax
je 0x10035389
push eax
push 0x68
call fcn.1000235c
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10033550
add dword [ebx + 4], 0x68
jmp 0x10035398
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, ebx
call fcn.10036a30
mov ecx, dword [ebp - 0x24]
mov eax, 0x10624dd3
mov esi, dword [ebp - 0x28]
sub ecx, esi
mov edi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xd8]
inc edi
imul ecx
add ebx, 0x3e8
mov dword [ebp - 0xdc], edi
sar edx, 6
mov eax, edx
mov dword [ebp - 0xd8], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10034da0
mov eax, dword [ebp - 0xd0]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.100028eb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.100028eb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.100028eb
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1003546b
mov ecx, dword [ebp - 0x20]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x1003544c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035492
push ecx
push esi
call fcn.10045a6f
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10012550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10012550
mov al, 1
jmp 0x100349e5
call fcn.10002e9f
call fcn.1004eea7
call fcn.1004eea7
call fcn.10002d90
int3