Function at 0x1005107a
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008943e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push esi
push edi
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x1ec], 0x272a7275
mov dword [ebp - 0x1fc], 0xfffffff8
mov dword [ebp - 0x204], 0xe704f3d
push 2
lea ecx, [ebp - 0x224]
call fcn.10017f97
and dword [ebp - 4], 0
mov dword [ebp - 0xc4], 0xffff
mov dword [ebp - 0x1c], 0
jmp 0x100510ea
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x10051100
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x20c], 0x40d7
jmp 0x100510e3
mov dword [ebp - 0x1c], 0
jmp 0x10051110
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x1005112c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x224]
call fcn.10018004
mov dword [eax], 0xe1f6f084
jmp 0x10051109
mov dword [ebp - 0x4c], 0
jmp 0x1005113c
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jg 0x100511ef
mov dword [ebp - 0x1d8], 0x4b25
mov dword [ebp - 0x1b8], 3
mov dword [ebp - 0x1b4], 3
mov dword [ebp - 0x1b0], 3
mov dword [ebp - 0x1ac], 3
lea ecx, [ebp - 0x85]
call fcn.100090d3
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10018013
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x238]
call fcn.10017fd9
mov dword [ebp - 0x1e0], 0xa4d91f06
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x100511d2
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0xc4]
dec eax
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x238]
call fcn.10017fff
jmp 0x10051135
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x10051203
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10017fff
push 1
lea eax, [ebp - 0x258]
push eax
xor edx, edx
inc edx
xor ecx, ecx
call fcn.1004b430
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x244]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x244]
lea edi, [ebp - 0x184]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xa0], 0xffffffff
push 3
lea ecx, [ebp - 0x78]
call fcn.10017f97
mov dword [ebp - 4], 1
mov dword [ebp - 0x84], 0xfffffff9
mov dword [ebp - 0x28], 0x34ea
mov dword [ebp - 0x14], 0
jmp 0x1005127d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10051296
push dword [ebp - 0x14]
lea ecx, [ebp - 0x78]
call fcn.10018004
mov dword [eax], 0x452a
jmp 0x10051276
mov dword [ebp - 0x14], 0
jmp 0x100512a6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x100512bc
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1a4], 3
jmp 0x1005129f
mov dword [ebp - 0x14], 0
jmp 0x100512cc
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x100512e2
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x150], 0
jmp 0x100512c5
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
cmp dword [eax], 0
jge 0x100512fd
mov dword [ebp - 0x144], 1
jmp 0x10051304
and dword [ebp - 0x144], 0
cmp dword [ebp - 0xa0], 0
je 0x10051321
push 2
lea ecx, [ebp - 0x78]
call fcn.10018004
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
push 2
lea ecx, [ebp - 0x78]
call fcn.10018004
mov esi, eax
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
mov ecx, dword [esi]
sub ecx, dword [eax]
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x84]
neg eax
mov dword [ebp - 0x14c], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14c]
mov dword [ebp + eax - 0x1a4], ecx
mov esi, dword [ebp - 0x144]
add esi, dword [ebp - 0x14c]
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
sub esi, dword [eax]
push 2
lea ecx, [ebp - 0x78]
call fcn.10018004
cmp esi, dword [eax]
jg 0x10051394
mov dword [ebp - 0x158], 1
jmp 0x1005139b
and dword [ebp - 0x158], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x84], 0
je 0x100513c5
mov eax, 0x1dbdae4
test eax, eax
je 0x100513c5
mov dword [ebp - 0x8c], 1
jmp 0x100513cc
and dword [ebp - 0x8c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp + eax - 0x150], ecx
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [eax]
jg 0x100513ff
mov dword [ebp - 0x13c], 1
jmp 0x10051406
and dword [ebp - 0x13c], 0
push 0
lea ecx, [ebp - 0x78]
call fcn.10018004
mov ecx, dword [ebp - 0x13c]
cmp ecx, dword [eax]
jle 0x10051426
mov dword [ebp - 0xf8], 1
jmp 0x1005142d
and dword [ebp - 0xf8], 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10018004
mov esi, dword [ebp - 0xf8]
add esi, dword [eax]
push 0
lea ecx, [ebp - 0x78]
call fcn.10018004
add esi, dword [eax]
neg esi
je 0x10051467
mov byte [ebp - 0x31], 0
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x10051465
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x100514a8
mov dword [ebp - 0x1f0], 0x5950cfdf
mov dword [ebp - 0x1f8], 0xb6bd0d42
mov dword [ebp - 0x60], 0
jmp 0x1005148b
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
jge 0x100514a1
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x268], 0xfffffffd
jmp 0x10051484
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x28], 0
jmp 0x100514b8
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jg 0x100514f9
mov dword [ebp - 0x154], 0xfffffffa
mov eax, dword [ebp - 0x28]
cmp dword [ebp + eax*4 - 0x1a4], 0xd36fbc6a
jb 0x100514e4
mov dword [ebp - 0xa8], 1
jmp 0x100514eb
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x154], eax
jmp 0x100514b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10017fff
mov dword [ebp - 0x164], 8
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x30], 0xde661fbc
mov dword [ebp - 0x18], 0x1213072c
mov dword [ebp - 0x15c], 0xffffffff
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x5c], 0
jmp 0x10051548
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 2
jge 0x1005155b
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*4 - 0x80], 0xb659d568
jmp 0x10051541
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x10], 0
jne 0x1005157f
mov dword [ebp - 0x138], 1
jmp 0x10051586
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xbc07c207
jb 0x100515a4
mov dword [ebp - 0xb0], 1
jmp 0x100515ab
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
sub eax, 0x1bd9d14f
cmp eax, 0xfffffff6
jne 0x100515ca
cmp dword [ebp - 0x10], 0
jne 0x100515ca
and dword [ebp - 0x100], 0
jmp 0x100515d4
mov dword [ebp - 0x100], 1
cmp dword [ebp - 0x100], 0x693009c
jge 0x100515ec
mov dword [ebp - 0xb8], 1
jmp 0x100515f3
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xb8], eax
jne 0x1005160a
mov dword [ebp - 0x128], 1
jmp 0x10051611
and dword [ebp - 0x128], 0
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x80], 0x9831
imul eax, dword [ebp - 0x128], 0x9831
cmp eax, dword [ebp - 0x10]
jl 0x1005163a
mov dword [ebp - 0xc0], 1
jmp 0x10051641
and dword [ebp - 0xc0], 0
cmp dword [ebp - 0xc0], 0xfffffff7
jne 0x10051656
mov dword [ebp - 0x108], 1
jmp 0x1005165d
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x108]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], 0
jmp 0x10051680
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x100518b5
mov dword [ebp - 0x40], 0x29b4ccc4
push 2
lea ecx, [ebp - 0x1c4]
call fcn.10017f97
mov dword [ebp - 4], 2
mov dword [ebp - 0x178], 3
mov dword [ebp - 0x58], 0
jmp 0x100516bf
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jge 0x100516db
push dword [ebp - 0x58]
lea ecx, [ebp - 0x1c4]
call fcn.10018004
mov dword [eax], 1
jmp 0x100516b8
mov dword [ebp - 0x30], 0
jmp 0x100516eb
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jg 0x10051732
mov dword [ebp - 0x10], 1
jmp 0x10051701
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10051730
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10051722
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 0x30]
cmp dword [ebp + eax*4 - 0x80], 0
je 0x1005172e
jmp 0x10051730
jmp 0x100516fa
jmp 0x100516e4
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x80], 0
jne 0x1005176e
cmp dword [ebp - 0x40], 0
je 0x10051774
cmp dword [ebp - 0x40], 0
jne 0x1005178a
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x80], 0
jne 0x1005178a
and dword [ebp - 0xc8], 0
jmp 0x10051794
mov dword [ebp - 0xc8], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc8], eax
jg 0x100517ab
mov dword [ebp - 0x148], 1
jmp 0x100517b2
and dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x148]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x1c4]
call fcn.10018004
cmp esi, dword [eax]
jl 0x100517df
mov dword [ebp - 0xd0], 1
jmp 0x100517e6
and dword [ebp - 0xd0], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xd0]
sub ecx, dword [ebp + eax - 0x80]
add ecx, dword [ebp - 0x18]
jne 0x1005180d
cmp dword [ebp - 0x178], 0
jne 0x1005180d
and dword [ebp - 0x110], 0
jmp 0x10051817
mov dword [ebp - 0x110], 1
cmp dword [ebp - 0x110], 0xfffffff6
ja 0x1005182c
mov dword [ebp - 0xd8], 1
jmp 0x10051833
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0x807c1f4b
jbe 0x1005184b
mov dword [ebp - 0x130], 1
jmp 0x10051852
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x80]
cmp eax, dword [ebp - 0x130]
jne 0x1005186d
mov dword [ebp - 0xe0], 1
jmp 0x10051874
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
shl eax, 2
cmp eax, dword [ebp - 0x40]
jge 0x1005188e
mov dword [ebp - 0x118], 1
jmp 0x10051895
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x15c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call fcn.10017fff
jmp 0x10051679
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x3c], 0xd6c05baf
push 1
lea ecx, [ebp - 0x1d0]
call fcn.10017f97
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0
jmp 0x100518ea
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 1
jge 0x10051906
push dword [ebp - 0x54]
lea ecx, [ebp - 0x1d0]
call fcn.10018004
mov dword [eax], 6
jmp 0x100518e3
mov dword [ebp - 0x3c], 0xfffffffd
jmp 0x10051916
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xfffffff9
je 0x10051b68
push 1
lea ecx, [ebp - 0x174]
call fcn.10017f97
mov byte [ebp - 4], 4
push 1
lea ecx, [ebp - 0x19c]
call fcn.10017f97
mov byte [ebp - 4], 5
mov dword [ebp - 0x168], 0xfffffffa
mov dword [ebp - 0x20], 0
jmp 0x1005195c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x10051978
push dword [ebp - 0x20]
lea ecx, [ebp - 0x174]
call fcn.10018004
mov dword [eax], 0xeede0b40
jmp 0x10051955
mov dword [ebp - 0x20], 0
jmp 0x10051988
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x100519a1
push dword [ebp - 0x20]
lea ecx, [ebp - 0x19c]
call fcn.10018004
or dword [eax], 0xffffffff
jmp 0x10051981
push 0
lea ecx, [ebp - 0x174]
call fcn.10018004
and dword [eax], 0
jmp 0x100519d7
push 0
lea ecx, [ebp - 0x174]
call fcn.10018004
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x174]
call fcn.10018004
cmp dword [eax], 9
jne 0x10051b45
mov dword [ebp - 0x50], 0xdfad5bef
mov dword [ebp - 0x94], 0x4039ee49
cmp dword [ebp - 0x3c], 0
je 0x10051b39
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x38], 0
jmp 0x10051a1f
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x10051a3c
push dword [ebp - 0x38]
lea ecx, [ebp - 0x19c]
call fcn.10018004
cmp dword [eax], 0
je 0x10051a3a
jmp 0x10051a3c
jmp 0x10051a18
push 0xfffffffffffffff8
pop eax
test eax, eax
je 0x10051b18
push 0
lea ecx, [ebp - 0x19c]
call fcn.10018004
mov esi, eax
push 0
lea ecx, [ebp - 0x1d0]
call fcn.10018004
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x10051a75
mov dword [ebp - 0x140], 1
jmp 0x10051a7c
and dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x140], eax
jl 0x10051a93
mov dword [ebp - 0x120], 1
jmp 0x10051a9a
and dword [ebp - 0x120], 0
cmp dword [ebp - 0x38], 0xcf1c
jne 0x10051aaf
mov dword [ebp - 0xf0], 1
jmp 0x10051ab6
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0xf0], eax
jg 0x10051ad0
mov dword [ebp - 0x9c], 1
jmp 0x10051ad7
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x9c]
jl 0x10051af7
mov dword [ebp - 0xa4], 1
jmp 0x10051afe
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x94]
je 0x10051b18
mov dword [ebp - 0xac], 1
jmp 0x10051b1f
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0xac]
imul eax, eax, 0x53b1
mov dword [ebp - 0x168], eax
jmp 0x10051b40
mov dword [ebp - 0x50], 0x67120dd9
jmp 0x100519b3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x19c]
call fcn.10017fff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x174]
call fcn.10017fff
jmp 0x1005190f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d0]
call fcn.10017fff
push 3
lea ecx, [ebp - 0x190]
call fcn.10017f97
mov dword [ebp - 4], 6
lea eax, [ebp - 0x1d4]
push eax
push 0x1d82
push 0x3fa0
push 0x36b8
lea eax, [ebp - 0x190]
push eax
push 0
call fcn.1004bbcb
add esp, 0x18
mov dword [ebp - 0xbc], 0xfffffffc
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x104], 5
mov dword [ebp - 0x160], 0xfffffffc
mov dword [ebp - 0x228], 0xc5674fa7
mov dword [ebp - 0x44], 0
jmp 0x10051bfb
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 3
jge 0x10051c0e
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x6c], 0x97ee
jmp 0x10051bf4
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
mov dword [ebp - 0x1f4], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0x6c]
cmp dword [ebp + eax - 0x6c], ecx
jg 0x10051c3d
mov dword [ebp - 0xb4], 1
jmp 0x10051c44
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
cmp dword [ebp - 0xbc], eax
jl 0x10051c6d
mov dword [ebp - 0x98], 1
jmp 0x10051c74
and dword [ebp - 0x98], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
cmp eax, dword [ebp - 0x98]
jne 0x10051c91
mov dword [ebp - 0xcc], 1
jmp 0x10051c98
and dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 0xffffffff
jb 0x10051cad
mov dword [ebp - 0xd4], 1
jmp 0x10051cb4
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x48], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
cmp dword [ebp - 0x48], eax
jge 0x10051ce3
mov dword [ebp - 0xdc], 1
jmp 0x10051cea
and dword [ebp - 0xdc], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
cmp dword [ebp - 0xdc], eax
je 0x10051d07
mov dword [ebp - 0xe4], 1
jmp 0x10051d0e
and dword [ebp - 0xe4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x6c]
cmp dword [ebp - 0xe4], eax
jle 0x10051d2c
mov dword [ebp - 0xec], 1
jmp 0x10051d33
and dword [ebp - 0xec], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
cmp eax, dword [ebp - 0xec]
jge 0x10051d50
mov dword [ebp - 0xf4], 1
jmp 0x10051d57
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 9
jl 0x10051d6c
mov dword [ebp - 0xfc], 1
jmp 0x10051d73
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x104], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x6c]
mov dword [ebp - 0x218], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x6c]
sub eax, dword [ebp - 0x104]
cmp eax, 0xf3b0
jle 0x10051db1
mov dword [ebp - 0x10c], 1
jmp 0x10051db8
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x10c], eax
je 0x10051dd2
mov dword [ebp - 0x114], 1
jmp 0x10051dd9
and dword [ebp - 0x114], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x114]
sub ecx, dword [ebp + eax - 0x6c]
cmp dword [ebp - 0x48], ecx
jge 0x10051e08
cmp dword [ebp - 0x48], 0
je 0x10051e08
mov eax, 0x32d3
test eax, eax
je 0x10051e08
mov dword [ebp - 0x11c], 1
jmp 0x10051e0f
and dword [ebp - 0x11c], 0
push 4
pop eax
shl eax, 1
push 0xfffffffffffffff9
pop ecx
sub ecx, dword [ebp - 0x11c]
cmp dword [ebp + eax - 0x6c], ecx
jne 0x10051e2f
mov dword [ebp - 0x124], 1
jmp 0x10051e36
and dword [ebp - 0x124], 0
cmp dword [ebp - 0x124], 0xffff
jb 0x10051e4e
mov dword [ebp - 0x12c], 1
jmp 0x10051e55
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x160], eax
push 0x6afc
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x164]
push eax
push 0x6bc2
push 1
call fcn.1004bbcb
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.100503c1
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.10017fff
cmp dword [ebp - 0x184], 0
je 0x10051ecb
push 2
push dword [ebp - 0x17c]
push dword [ebp - 0x180]
call dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret