Function at 0x100503c1
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100893ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push 2
lea ecx, [ebp - 0x150]
call fcn.10017f97
and dword [ebp - 4], 0
mov dword [ebp - 0x120], 0x2bbd4aa4
mov dword [ebp - 0x18], 0
jmp 0x1005040a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10050426
push dword [ebp - 0x18]
lea ecx, [ebp - 0x150]
call fcn.10018004
mov dword [eax], 0x9f9b
jmp 0x10050403
mov dword [ebp - 0x18], 0
jmp 0x10050436
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10050449
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x34], 0x5c8094a
jmp 0x1005042f
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x34], 0
jmp 0x1005046e
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x34]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x34], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x34], 1
jg 0x100505c6
mov dword [ebp - 0x24], 0xfd94fe5f
mov dword [ebp - 0x24], 1
jmp 0x10050496
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x100505c1
mov dword [ebp - 0xa8], 0xafbd13d8
mov dword [ebp - 0xf0], 0xfffffff9
cmp dword [ebp - 0x24], 0
jne 0x100504c6
mov dword [ebp - 0xe0], 1
jmp 0x100504cd
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xe0]
cmp eax, 0xbb00868b
je 0x10050524
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x34]
lea ecx, [ebp - 0x150]
call fcn.10018004
cmp dword [eax], 0xae28de63
jae 0x10050507
mov dword [ebp - 0xa0], 1
jmp 0x1005050e
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
neg eax
cmp eax, dword [ebp - 0x24]
jl 0x10050524
and dword [ebp - 0xf8], 0
jmp 0x1005052e
mov dword [ebp - 0xf8], 1
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x10050555
cmp dword [ebp - 0x24], 0
je 0x10050555
mov dword [ebp - 0xd8], 1
jmp 0x1005055c
and dword [ebp - 0xd8], 0
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x34]
lea ecx, [ebp - 0x150]
call fcn.10018004
mov eax, dword [eax]
cmp eax, dword [ebp - 0xd8]
jle 0x1005059d
mov eax, 0x36dc9922
test eax, eax
je 0x1005059d
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x34], 0
je 0x1005059d
mov dword [ebp - 0xb0], 1
jmp 0x100505a4
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x120], eax
jmp 0x1005048f
jmp 0x10050459
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10017fff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x70], 0x69fdf99f
mov dword [ebp - 0x70], 0xfffffff4
jmp 0x100505f5
mov eax, dword [ebp - 0x70]
dec eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffea
jle 0x100506e3
mov dword [ebp - 0x84], 0x6bacd795
push 4
lea ecx, [ebp - 0x16c]
call fcn.10017f97
mov dword [ebp - 4], 1
mov dword [ebp - 0x60], 0
jmp 0x1005062d
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
jge 0x10050649
push dword [ebp - 0x60]
lea ecx, [ebp - 0x16c]
call fcn.10018004
mov dword [eax], 0xfffffffb
jmp 0x10050626
mov byte [ebp - 0x35], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x10050661
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov dword [ebp - 0x84], 0
jmp 0x1005067a
mov eax, dword [ebp - 0x84]
dec eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0xfffffffc
jge 0x100506cf
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x50], 0
jmp 0x1005069a
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 4
jge 0x100506b6
push dword [ebp - 0x50]
lea ecx, [ebp - 0x16c]
call fcn.10018004
mov dword [eax], 0x6ec79cf1
jmp 0x10050693
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp - 0x2e]
test eax, eax
je 0x100506cd
push 0x2600
call dword [sym.imp.USER32.dll_GetQueueStatus]
jmp 0x1005066d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.10017fff
jmp 0x100505ee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x68], 0x69fdf99f
mov dword [ebp - 0x68], 0xfffffff4
jmp 0x10050700
mov eax, dword [ebp - 0x68]
dec eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffea
jle 0x100507df
mov dword [ebp - 0x58], 0x6bacd795
push 4
lea ecx, [ebp - 0x178]
call fcn.10017f97
mov dword [ebp - 4], 2
mov dword [ebp - 0x80], 0
jmp 0x10050735
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 4
jge 0x10050751
push dword [ebp - 0x80]
lea ecx, [ebp - 0x178]
call fcn.10018004
mov dword [eax], 0xfffffffb
jmp 0x1005072e
mov byte [ebp - 0x26], 0
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x10050769
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov dword [ebp - 0x58], 0
jmp 0x10050779
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xfffffffc
jge 0x100507cb
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x48], 0
jmp 0x10050796
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 4
jge 0x100507b2
push dword [ebp - 0x48]
lea ecx, [ebp - 0x178]
call fcn.10018004
mov dword [eax], 0x6ec79cf1
jmp 0x1005078f
mov byte [ebp - 0x27], 0
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x100507c9
push 0x2600
call dword [sym.imp.USER32.dll_GetQueueStatus]
jmp 0x10050772
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.10017fff
jmp 0x100506f9
mov eax, dword [ebp - 0x88]
mov dword [eax], 0xffffffeb
jmp 0x100507fe
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
mov eax, dword [ebp - 0x88]
cmp dword [eax], 0x10
jl 0x1005106c
mov dword [ebp - 0x74], 0xffffffff
push 4
lea ecx, [ebp - 0x1a8]
call fcn.10017f97
mov dword [ebp - 4], 3
mov dword [ebp - 0x78], 0
jmp 0x10050838
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 4
jge 0x10050854
push dword [ebp - 0x78]
lea ecx, [ebp - 0x1a8]
call fcn.10018004
mov dword [eax], 1
jmp 0x10050831
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x10050874
push 0x3c1
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov byte [ebp - 0x2b], 0
movzx eax, byte [ebp - 0x2b]
test eax, eax
je 0x1005089e
push 0x233
push 0x1191
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a8]
call fcn.10017fff
mov dword [ebp - 0x19c], 9
mov dword [ebp - 0x194], 9
push 1
lea ecx, [ebp - 0x1b8]
call fcn.10017f97
mov dword [ebp - 4], 4
mov dword [ebp - 0xb8], 0x2d8c
mov dword [ebp - 0x5c], 0
jmp 0x100508ef
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 1
jge 0x1005090b
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x1b8]
call fcn.10018004
mov dword [eax], 0x37831e42
jmp 0x100508e8
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x1005092e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b8]
call fcn.10017fff
mov dword [ebp - 0x118], 0x4e785c2f
mov dword [ebp - 0x4c], 0xd3c891c5
mov dword [ebp - 0x40], 0xfffffff6
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x54], 0xef307d7c
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], 0
jmp 0x1005098d
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jl 0x10050c23
mov dword [ebp - 0x144], 0xd045
mov byte [ebp - 0x2c], 0
movzx eax, byte [ebp - 0x2c]
test eax, eax
je 0x100509be
push 0x1f71
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov dword [ebp - 0x54], 0xffffffe3
jmp 0x100509ce
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
je 0x10050c1e
mov dword [ebp - 0x64], 0
jmp 0x100509e8
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 4
jge 0x100509fe
mov eax, dword [ebp - 0x64]
mov dword [ebp + eax*4 - 0x160], 0
jmp 0x100509e1
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x160]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3c], 2
jmp 0x10050a1e
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xfffffff9
je 0x10050c19
mov dword [ebp - 0x11c], 0x54ab
mov dword [ebp - 0x40], 0
jmp 0x10050a42
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jg 0x10050c14
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x44], 0
jmp 0x10050a63
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 3
jg 0x10050c0f
mov dword [ebp - 0x14], 0xfffffff7
mov dword [ebp - 0x14], 3
jmp 0x10050a84
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10050c0a
mov dword [ebp - 0x108], 0xfffffff8
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x160], 0xfffffffd
jl 0x10050ab1
mov dword [ebp - 0x8c], 1
jmp 0x10050ab8
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x160], ecx
xor eax, eax
sub eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x108]
je 0x10050ae4
mov dword [ebp - 0x98], 1
jmp 0x10050aeb
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0x137d
jne 0x10050b03
mov dword [ebp - 0xc0], 1
jmp 0x10050b0a
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x14]
jne 0x10050b24
mov dword [ebp - 0x100], 1
jmp 0x10050b2b
and dword [ebp - 0x100], 0
cmp dword [ebp - 0x100], 0x132d
jle 0x10050b43
mov dword [ebp - 0xc8], 1
jmp 0x10050b4a
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x44]
cmp dword [ebp + eax*4 - 0x160], 0x40b319b
jg 0x10050b72
mov dword [ebp - 0x13c], 1
jmp 0x10050b79
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x11c], 0x79d6
je 0x10050bac
mov dword [ebp - 0xe8], 1
jmp 0x10050bb3
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0xe8]
cmp eax, 0xeed1
jle 0x10050bd2
mov dword [ebp - 0xd0], 1
jmp 0x10050bd9
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xd0]
jne 0x10050bf0
mov dword [ebp - 0x124], 1
jmp 0x10050bf7
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x160], 0xffffffff
jmp 0x10050a7d
jmp 0x10050a5c
jmp 0x10050a3b
jmp 0x10050a17
jmp 0x100509c7
jmp 0x10050986
mov dword [ebp - 0x190], 9
mov byte [ebp - 0x28], 0
movzx eax, byte [ebp - 0x28]
test eax, eax
je 0x10050c3f
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x10050c62
push 0x1883
push 0
push 0xac
push 0x1091
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [ebp - 0x1c], 0
jmp 0x10050c72
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x10050c88
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x12c], 1
jmp 0x10050c6b
mov dword [ebp - 0x1c], 0
jmp 0x10050c98
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x10050cae
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x138], 0x796a
jmp 0x10050c91
mov dword [ebp - 0x20], 0x3342eb9
mov dword [ebp - 0xac], 0xc42ff18c
push 2
lea ecx, [ebp - 0x184]
call fcn.10017f97
mov dword [ebp - 4], 5
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x90], 1
mov dword [ebp - 0xec], 0x95a52772
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x6c], 0
jmp 0x10050d0b
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 2
jge 0x10050d27
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x184]
call fcn.10018004
mov dword [eax], 0x2268f62c
jmp 0x10050d04
mov dword [ebp - 0x20], 0
jmp 0x10050d37
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10050f2e
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x10], 0xe
jmp 0x10050d58
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xfffffffe
jl 0x10050f07
mov dword [ebp - 0x140], 5
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
jne 0x10050d80
mov dword [ebp - 0xd4], 1
jmp 0x10050d87
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0x20], 0
jne 0x10050d91
cmp dword [ebp - 0x10], 0
cmp dword [ebp - 0x20], 0
je 0x10050dac
mov eax, 0x7a41
test eax, eax
je 0x10050dac
mov dword [ebp - 0x9c], 1
jmp 0x10050db3
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x9c], eax
jg 0x10050dca
mov dword [ebp - 0xa4], 1
jmp 0x10050dd1
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x198], eax
push 0
lea ecx, [ebp - 0x184]
call fcn.10018004
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0x7b831966
imul eax, ecx
cmp eax, 0xd44f4cc5
jb 0x10050e21
cmp dword [ebp - 0x140], 0
je 0x10050e21
mov dword [ebp - 0xb4], 1
jmp 0x10050e28
and dword [ebp - 0xb4], 0
cmp dword [ebp - 0xb4], 1
ja 0x10050e3d
mov dword [ebp - 0xbc], 1
jmp 0x10050e44
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0xbc], eax
jne 0x10050e5e
mov dword [ebp - 0xc4], 1
jmp 0x10050e65
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x10050e8c
cmp dword [ebp - 0x90], 0
jne 0x10050e8c
and dword [ebp - 0xcc], 0
jmp 0x10050e96
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xcc], eax
jne 0x10050ead
mov dword [ebp - 0xdc], 1
jmp 0x10050eb4
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xd4]
add eax, dword [ebp - 0xdc]
cmp eax, 0xd065
jle 0x10050ed7
push 3
pop eax
test eax, eax
jne 0x10050ed7
and dword [ebp - 0xe4], 0
jmp 0x10050ee1
mov dword [ebp - 0xe4], 1
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xf4], eax
jmp 0x10050d51
mov byte [ebp - 0x2a], 0
movzx eax, byte [ebp - 0x2a]
test eax, eax
je 0x10050f29
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
jmp 0x10050d30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x184]
call fcn.10017fff
push 2
mov ecx, dword [ebp - 0x7c]
call fcn.10018004
cmp dword [eax], 0
jne 0x10050ff7
push 2
mov ecx, dword [ebp - 0x7c]
call fcn.10018004
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10c]
mov dword [ebp + eax - 0x12c], ecx
push 2
mov ecx, dword [ebp - 0x7c]
call fcn.10018004
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x12c]
mov dword [ebp - 0x1c0], eax
xor eax, eax
cmp eax, 0x43ec3e1b
jge 0x10050fad
mov dword [ebp - 0x94], 1
jmp 0x10050fb4
and dword [ebp - 0x94], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp + eax - 0x12c], ecx
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x94], eax
jg 0x10050fde
mov dword [ebp - 0x110], 1
jmp 0x10050fe5
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x1bc], eax
mov eax, 0xfffe
test eax, eax
je 0x10051013
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x138], 0
je 0x10051013
mov dword [ebp - 0xfc], 1
jmp 0x1005101a
and dword [ebp - 0xfc], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xfc]
sub ecx, dword [ebp + eax - 0x138]
push 4
pop eax
shl eax, 0
cmp ecx, dword [ebp + eax - 0x138]
jl 0x10051048
mov dword [ebp - 0x104], 1
jmp 0x1005104f
and dword [ebp - 0x104], 0
push 2
mov ecx, dword [ebp - 0x7c]
call fcn.10018004
mov ecx, dword [ebp - 0x104]
add ecx, dword [eax]
mov dword [ebp - 0x118], ecx
jmp 0x100507ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret