Function at 0x10034830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c221
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.10036c50
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.100325d0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x10034a13
test esi, esi
je 0x10034a13
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.10035e40
test al, al
je 0x100349b4
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 0x100349ae
jb 0x10034956
cmp ecx, 0x4ffffe
ja 0x100349ae
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edi
call fcn.100125a0
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 0x100349ae
jb 0x10034995
cmp eax, edi
jae 0x100349ae
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.100125a0
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 0x10034a33
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10034a13
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100349f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push edx
push ecx
call fcn.10045a8f
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.10045845
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.1003f2b0
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.1003f580
test al, al
jne 0x10034adb
mov byte [ebx], 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x100349c3
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10034ab7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c7
push edx
push ecx
call fcn.10045a8f
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x100349c3
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 0x10034b2e
mov byte [ebx], 1
mov byte [ebp - 4], 0
test esi, esi
je 0x100349c3
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10034b2a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push ecx
push esi
jmp 0x10034ab9
test edi, edi
jne 0x10034bd7
mov byte [ebp - 4], 0
test esi, esi
je 0x10034b80
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10034b61
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push ecx
push esi
call fcn.10045a8f
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 0x10034bd0
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10034bb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push edx
push ecx
call fcn.10045a8f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, 1
jmp 0x10034a15
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.10036680
imul eax, edi, 0x3e8
push eax
push esi
push dword [ebp - 0x28]
call fcn.10048830
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 0x10034c9d
xor edi, edi
cmp dword [ebx + edi], 0x23ab45db
jne 0x10034cf8
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 0x10034c43
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 0x10034d76
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 0x100354cc
jmp 0x10034d6e
mov eax, dword [ebp - 0xd0]
mov byte [eax], 1
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10034afb
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 0x10034d4a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push ecx
push edi
call fcn.10045a8f
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x10034afb
push edi
mov ecx, esi
call fcn.100363b0
lea ecx, [ebp - 0xa0]
call fcn.100329c0
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 0x10035408
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 0x10034e33
mov esi, eax
cmp ebx, 8
jb 0x10034dfd
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 0x10034fa2
lea ecx, [ebp - 0xa0]
call fcn.10002ee1
cmp edi, eax
ja 0x100354bd
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 0x10034e9d
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10034e9d
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 0x10034eaf
or ecx, 0xffffffff
jmp 0x10034eb7
cmp ecx, 0x1000
jb 0x10034ee2
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100354c2
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10034ef3
test ecx, ecx
je 0x10034ef1
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x10034ef3
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 0x10034f7f
mov eax, dword [edi]
lea ecx, [ebx*2 + 2]
cmp ecx, 0x1000
jb 0x10034f6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
mov eax, edx
push ecx
push eax
call fcn.10045a8f
mov eax, dword [ebp - 0xe0]
add esp, 8
mov dword [edi], eax
jmp 0x10034fa2
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 0x10035013
mov esi, edi
cmp eax, 8
jb 0x10034fdb
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 0x1003517e
lea ecx, [ebp - 0x88]
call fcn.10002ee1
cmp ebx, eax
ja 0x100354bd
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 0x1003507d
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1003507d
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 0x1003508f
or ecx, 0xffffffff
jmp 0x10035097
cmp ecx, 0x1000
jb 0x100350c2
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100354c2
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100350d3
test ecx, ecx
je 0x100350d1
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x100350d3
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 0x1003515b
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10035147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
mov eax, edx
push ecx
push eax
call fcn.10045a8f
mov eax, dword [ebp - 0xe4]
add esp, 8
mov dword [edi], eax
jmp 0x1003517e
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 0x10035223
mov esi, edi
cmp eax, 8
jb 0x100351eb
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 0x10035379
lea ecx, [ebp - 0x70]
call fcn.10002ee1
cmp ebx, eax
ja 0x100354bd
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 0x10035284
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10035284
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 0x10035296
or ecx, 0xffffffff
jmp 0x1003529e
cmp ecx, 0x1000
jb 0x100352c9
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100354c2
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100352da
test ecx, ecx
je 0x100352d8
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x100352da
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 0x10035359
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10035348
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
mov eax, edx
push ecx
push eax
call fcn.10045a8f
mov eax, dword [ebp - 0x38]
add esp, 8
mov dword [edi], eax
jmp 0x10035379
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 0x100353b9
push eax
push 0x68
call fcn.1000235c
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.10033580
add dword [ebx + 4], 0x68
jmp 0x100353c8
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, ebx
call fcn.10036a50
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 0x10034dd0
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 0x1003549b
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 0x1003547c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100354c2
push ecx
push esi
call fcn.10045a8f
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.10012510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10012510
mov al, 1
jmp 0x10034a15
call fcn.10002e9f
call fcn.1004eec7
call fcn.1004eec7
call fcn.10002d90
int3