Function at 0x10059254
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c649
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
push edi
mov dword [ebp - 0x4c], 0xb9f9b31
mov dword [ebp - 0x4c], 0xffffffe2
jmp 0x1005928b
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffe8
jne 0x10059425
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x74], 0
jmp 0x100592ac
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 3
jg 0x10059418
mov dword [ebp - 0x10], 1
push 3
lea ecx, [ebp - 0x144]
call fcn.10019689
and dword [ebp - 4], 0
mov dword [ebp - 0x60], 0
jmp 0x100592de
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 3
jge 0x100592fa
push dword [ebp - 0x60]
lea ecx, [ebp - 0x144]
call fcn.10019727
mov dword [eax], 9
jmp 0x100592d7
mov dword [ebp - 0x10], 0xffffffe9
jmp 0x1005930a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jg 0x10059371
mov dword [ebp - 0x54], 0xffffffff
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1005933c
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1236
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x54], 0
jmp 0x1005934c
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 2
jg 0x1005936f
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1005936d
push 0
push 0xc6b
push 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
jmp 0x10059345
jmp 0x10059303
mov dword [ebp - 0x10], 2
jmp 0x10059381
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10059404
mov dword [ebp - 0x44], 0x3dda37bb
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x100593b0
push 0
push 0
push 0x2325
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x44], 2
jmp 0x100593c0
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jl 0x100593ff
push dword [ebp - 0x44]
lea ecx, [ebp - 0x144]
call fcn.10019727
mov esi, eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x144]
call fcn.10019727
mov ecx, dword [esi]
mov dword [eax], ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x144]
call fcn.10019727
cmp dword [eax], 0
je 0x100593fd
jmp 0x100593b9
jmp 0x100593b9
jmp 0x1005937a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.1001970b
jmp 0x100592a5
cmp dword [ebp - 0x4c], 0
je 0x10059420
jmp 0x10059425
jmp 0x10059284
mov dword [ebp - 0x48], 0xfffffff6
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x78], 0x17ca4e8
mov dword [ebp - 0x128], 0xe6286c8a
mov dword [ebp - 0xa0], 0x9329bfae
mov dword [ebp - 0x1cc], 0xc259dba5
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x1a4], 1
mov dword [ebp - 0x1a0], 1
lea ecx, [ebp - 0x85]
call fcn.100093d3
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x210]
call fcn.10019736
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x164]
call fcn.100196e5
mov dword [ebp - 4], 1
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x100594da
xor eax, eax
jne 0x100594cb
cmp dword [ebp - 0x48], 0
cmp dword [ebp - 0x18], 0
je 0x100594da
and dword [ebp - 0x114], 0
jmp 0x100594e4
mov dword [ebp - 0x114], 1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jg 0x100594f8
mov dword [ebp - 0x98], 1
jmp 0x100594ff
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x98]
cmp dword [ebp - 0x114], eax
jne 0x1005951c
mov dword [ebp - 0x9c], 1
jmp 0x10059523
and dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0
jne 0x1005953e
mov eax, 0x5998
test eax, eax
jne 0x1005953e
and dword [ebp - 0xdc], 0
jmp 0x10059548
mov dword [ebp - 0xdc], 1
mov eax, dword [ebp - 0xdc]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x78]
jne 0x1005966a
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x134], 0xfffffffe
mov dword [ebp - 0x11c], 0x421ad7ba
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x50], 0
jne 0x10059593
cmp dword [ebp - 0x48], 0
jne 0x10059593
and dword [ebp - 0xa4], 0
jmp 0x1005959d
mov dword [ebp - 0xa4], 1
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0xa4], eax
jle 0x100595b4
mov dword [ebp - 0xfc], 1
jmp 0x100595bb
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0xfc], eax
jne 0x100595d2
mov dword [ebp - 0xac], 1
jmp 0x100595d9
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0x8b47
je 0x100595f1
mov dword [ebp - 0xe4], 1
jmp 0x100595f8
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
sub eax, 9
cmp dword [ebp - 0x50], eax
jle 0x10059612
mov dword [ebp - 0xb4], 1
jmp 0x10059619
and dword [ebp - 0xb4], 0
cmp dword [ebp - 0xb4], 0xdd9a
jge 0x10059631
mov dword [ebp - 0x10c], 1
jmp 0x10059638
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x10c]
jle 0x1005964f
mov dword [ebp - 0xbc], 1
jmp 0x10059656
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0x11c], eax
jmp 0x10059898
mov dword [ebp - 0x198], 0xcb7b
mov dword [ebp - 0x194], 0xcb7b
mov dword [ebp - 0x190], 0xcb7b
mov dword [ebp - 0x18c], 0xcb7b
mov dword [ebp - 0x7c], 0xbbbfefa2
mov dword [ebp - 0x150], 0xef321248
mov dword [ebp - 0xec], 1
mov dword [ebp - 0x130], 0x7be8
mov dword [ebp - 0x68], 0
jmp 0x100596c7
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 4
jge 0x100596dd
mov eax, dword [ebp - 0x68]
mov dword [ebp + eax*4 - 0x208], 3
jmp 0x100596c0
mov eax, dword [ebp - 0xec]
inc eax
mov dword [ebp - 0xec], eax
mov esi, dword [ebp - 0x18]
push 2
lea ecx, [ebp - 0x164]
call fcn.10019727
mov ecx, dword [ebp - 0x7c]
imul ecx, dword [eax]
cmp esi, ecx
jl 0x10059710
mov dword [ebp - 0xc4], 1
jmp 0x10059717
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x7c]
imul eax, dword [ebp - 0xc4]
imul eax, dword [ebp - 0x128]
imul eax, dword [ebp - 0x7c]
cmp eax, 0xc946
jle 0x1005973f
mov dword [ebp - 0x104], 1
jmp 0x10059746
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x104]
jl 0x1005975d
mov dword [ebp - 0x14c], 1
jmp 0x10059764
and dword [ebp - 0x14c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x198]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x78], eax
jg 0x10059797
mov eax, 0x84c0
test eax, eax
jne 0x10059797
cmp dword [ebp - 0x18], 0
jne 0x10059797
and dword [ebp - 0xcc], 0
jmp 0x100597a1
mov dword [ebp - 0xcc], 1
cmp dword [ebp - 0xcc], 0xea8900e2
ja 0x100597b9
mov dword [ebp - 0xf4], 1
jmp 0x100597c0
and dword [ebp - 0xf4], 0
imul eax, dword [ebp - 0xf4], 0xfff7
cmp eax, dword [ebp - 0x18]
je 0x100597e4
cmp dword [ebp - 0x130], 0
je 0x100597e4
mov dword [ebp - 0xd4], 1
jmp 0x100597eb
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xd4], eax
jne 0x10059802
mov dword [ebp - 0x94], 1
jmp 0x10059809
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0xfff7
je 0x10059821
mov dword [ebp - 0x90], 1
jmp 0x10059828
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x198]
cmp dword [ebp - 0x90], eax
jl 0x10059849
mov dword [ebp - 0xa8], 1
jmp 0x10059850
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0xa0], eax
mov esi, dword [ebp - 0xa0]
push 2
lea ecx, [ebp - 0x164]
call fcn.10019727
mov ecx, dword [ebp - 0xa8]
imul ecx, dword [eax]
imul esi, ecx
push 2
lea ecx, [ebp - 0x164]
call fcn.10019727
imul esi, dword [eax]
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x208], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.1001970b
mov dword [ebp - 0x40], 1
mov dword [ebp - 0xc0], 0x1f782a18
mov dword [ebp - 0xb0], 8
mov dword [ebp - 0x138], 0xfffffff7
mov dword [ebp - 0x1e4], 0x8939f5fa
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x70], 0
jmp 0x100598f0
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 4
jge 0x10059906
mov eax, dword [ebp - 0x70]
mov dword [ebp + eax*4 - 0x22c], 0
jmp 0x100598e9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c0], eax
imul eax, dword [ebp - 0x40], 0xfffe
imul eax, dword [ebp - 0xb0]
cmp dword [ebp - 0xb0], eax
jle 0x1005993a
mov dword [ebp - 0xb8], 1
jmp 0x10059941
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0xb8]
je 0x10059958
mov dword [ebp - 0xc8], 1
jmp 0x1005995f
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0xc8]
jl 0x10059982
mov dword [ebp - 0xd0], 1
jmp 0x10059989
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0xd0]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xd8]
inc eax
mov dword [ebp - 0xd8], eax
push 1
lea eax, [ebp - 0x21c]
push eax
xor edx, edx
inc edx
xor ecx, ecx
call fcn.1005628d
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x1f0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1f0]
lea edi, [ebp - 0x17c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x5c], 0x25b9b55b
mov dword [ebp - 0x58], 0
jmp 0x100599ec
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jge 0x10059a02
mov eax, dword [ebp - 0x58]
mov dword [ebp + eax*4 - 0x1f8], 0xfffffff9
jmp 0x100599e5
mov dword [ebp - 0x5c], 0
jmp 0x10059a12
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x1c
jle 0x10059aa2
mov dword [ebp - 0x3c], 0x1f20
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3c], 0
jmp 0x10059a3a
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jg 0x10059a9d
mov dword [ebp - 0x64], 0xbd4dfbd6
mov dword [ebp - 0x64], 0
jmp 0x10059a57
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 1
jg 0x10059a9b
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x6c], 0
jmp 0x10059a74
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 1
jg 0x10059a99
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10059a97
push 1
push 0x1075
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
jmp 0x10059a6d
jmp 0x10059a50
jmp 0x10059a33
jmp 0x10059a0b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], 9
jmp 0x10059ab9
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xb
jg 0x10059c97
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x80], 0xfffffff9
push 3
lea ecx, [ebp - 0x188]
call fcn.10019689
mov dword [ebp - 4], 2
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0x3592
push 0x18cb
push 0
call fcn.10056a37
add esp, 0x14
mov dword [ebp - 0x38], 0xffffffef
jmp 0x10059b21
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffea
jne 0x10059c83
mov dword [ebp - 0x2c], 0xd3860a42
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
neg eax
jne 0x10059b52
cmp dword [ebp - 0x158], 0
jne 0x10059b52
and dword [ebp - 0xe8], 0
jmp 0x10059b5c
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0x2c], 0x44b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1e0], eax
imul eax, dword [ebp - 0x24], 0x3826
cmp eax, 0x56ebf4d3
jl 0x10059b8f
mov dword [ebp - 0xe0], 1
jmp 0x10059b96
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xe0]
cmp eax, dword [ebp - 0x34]
jl 0x10059bb1
mov dword [ebp - 0xf0], 1
jmp 0x10059bb8
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xf0]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0xf8], eax
push 0
lea ecx, [ebp - 0x188]
call fcn.10019727
mov ecx, dword [ebp - 0xf8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0x80]
imul ecx, eax
test ecx, ecx
je 0x10059c74
mov dword [ebp - 0x34], 0x1d
jmp 0x10059c08
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xfffffff9
jle 0x10059c58
mov byte [ebp - 0x1e], 0
push 0
lea eax, [ebp - 0x1e]
push eax
call fcn.100578e2
pop ecx
pop ecx
mov dword [ebp - 0x2c], 0
jmp 0x10059c2f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jg 0x10059c56
push 0x512b
push 0x285f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x188]
push eax
push 1
call fcn.10056a37
add esp, 0x14
jmp 0x10059c28
jmp 0x10059c01
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10059c72
push 1
push 0x1736
call fcn.100578e2
pop ecx
pop ecx
jmp 0x10059c7e
lea eax, [ebp - 0x80]
push eax
call fcn.10058873
pop ecx
jmp 0x10059b1a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x188]
call fcn.1001970b
jmp 0x10059ab2
mov dword [ebp - 0x30], 0x68206240
mov dword [ebp - 0x110], 8
mov dword [ebp - 0x108], 0xfffffff8
push 2
lea ecx, [ebp - 0x170]
call fcn.10019689
mov dword [ebp - 4], 3
push 4
lea ecx, [ebp - 0x1b8]
call fcn.10019689
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0xc29478c9
mov dword [ebp - 0x14], 0
jmp 0x10059cf1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10059d0d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x170]
call fcn.10019727
mov dword [eax], 0x1e6e2bf
jmp 0x10059cea
mov dword [ebp - 0x14], 0
jmp 0x10059d1d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x10059d39
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1b8]
call fcn.10019727
mov dword [eax], 1
jmp 0x10059d16
mov dword [ebp - 0x30], 0x1b
jmp 0x10059d49
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xfffffffd
jge 0x10059d6e
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x10059d6c
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetPropA]
jmp 0x10059d42
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1d4], eax
push 3
lea ecx, [ebp - 0x1b8]
call fcn.10019727
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x84]
mov dword [ecx], eax
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp - 0x154]
jle 0x10059dcf
mov dword [ebp - 0x120], 1
jmp 0x10059dd6
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x108], eax
jge 0x10059df0
mov dword [ebp - 0x100], 1
jmp 0x10059df7
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x100], eax
jge 0x10059e11
mov dword [ebp - 0x124], 1
jmp 0x10059e18
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x30], eax
je 0x10059e3b
mov dword [ebp - 0x12c], 1
jmp 0x10059e42
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x1c8], eax
push 0
lea ecx, [ebp - 0x170]
call fcn.10019727
cmp dword [eax], 0x441791e6
je 0x10059e6f
mov dword [ebp - 0x118], 1
jmp 0x10059e76
and dword [ebp - 0x118], 0
push 0
lea ecx, [ebp - 0x170]
call fcn.10019727
mov ecx, dword [ebp - 0x118]
mov dword [eax], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b8]
call fcn.1001970b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.1001970b
cmp dword [ebp - 0x17c], 0
je 0x10059ec6
push 2
push dword [ebp - 0x174]
push dword [ebp - 0x178]
call dword [ebp - 0x17c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret