Function at 0x100461c1
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006c2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
xor ebx, ebx
mov dword [esp + 0xe4], ecx
inc ebx
mov dword [esp + 0xe0], edx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0xf4]
push esi
mov dword [esp + 0xc], 0x7e0d1b71
mov dword [esp + 0x1c], 0x5a60915b
push edi
mov dword [esp + 0x34], 0x7fa6fbaa
mov dword [esp + 0x30], ebx
mov dword [esp + 0x30], 0xf04a32a0
push 4
call fcn.1002a7d6
xor ecx, ecx
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x28], 0x9b55bb2c
mov dword [esp + 0x10], 0x2a8358bd
push 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], 0xb
pop edx
jmp 0x10046315
mov dword [esp + 0x14], 0x9351f200
mov dword [esp + 0x14], 0xffffffe8
jmp 0x10046306
mov dword [esp + 0x20], ecx
jmp 0x10046287
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0xe0], 0xfffffffc
inc dword [esp + 0x20]
cmp dword [esp + 0x20], ebx
jl 0x10046274
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x28], ecx
je 0x100462a3
cmp dword [esp + 0x18], ecx
jne 0x10046311
jmp 0x10046302
mov dword [esp + 0x20], ecx
jmp 0x100462bc
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x120], 0x1a7ecc24
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 4
jl 0x100462a9
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], ecx
jl 0x100462fb
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], ecx
jl 0x100462f5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x120]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x120], ecx
dec dword [esp + 0x10]
jns 0x100462d7
xor ecx, ecx
dec dword [esp + 0x18]
jns 0x100462cd
mov eax, dword [esp + 0xe0]
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffe3
jg 0x1004626e
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0x11
jge 0x10046259
push 2
lea ecx, [esp + 0xc4]
call fcn.1002a7d6
push 3
lea ecx, [esp + 0xb8]
mov byte [esp + 0x140], bl
call fcn.1002a7d6
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x10046361
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
mov dword [eax + ecx*4], 0x13dd33a4
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1004634b
mov dword [esp + 0x10], edx
jmp 0x10046384
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xb4]
mov dword [eax + ecx*4], 0x6aabecba
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1004636e
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0xc0]
mov dword [ecx + 8], edx
mov eax, dword [ecx + 8]
mov dword [esi + eax*4], 0xfffffffb
inc dword [ecx + 8]
cmp dword [ecx + 8], 2
jl 0x1004639c
push ecx
call fcn.10054019
xor edx, edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], edx
mov byte [esp + 0x140], dl
pop ecx
test esi, esi
je 0x100463f6
push esi
call fcn.10054019
xor edx, edx
pop ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x10], edx
jmp 0x1004640f
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x84], 0xfffffff6
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x100463fc
mov dword [esp + 0x20], 0xd313dd33
mov dword [esp + 0x14], edx
jmp 0x10046437
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x11c], 0xbd97
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jl 0x10046424
mov dword [esp + 0x20], 0x1a
jmp 0x10046479
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], edx
jmp 0x1004646f
mov byte [esp + 0x1f], dl
cmp byte [esp + 0x1f], 0
je 0x1004646b
push edx
push 0x16db
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor edx, edx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edx
jle 0x10046451
dec dword [esp + 0x20]
cmp dword [esp + 0x20], 0xfffffff4
jle 0x10046447
mov dword [esp + 0x10], edx
jmp 0x1004649c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xfc]
mov dword [eax + ecx*4], 0xf905
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x10046486
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edx
jmp 0x100464c0
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x114], 0xb1cecb45
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x100464ad
mov eax, dword [esp + 0x20]
mov dword [esp + 0x118], eax
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x20], edx
jl 0x100467ca
mov dword [esp + 0x30], 0x1e26
cmp dword [esp + 0x30], 0xd77
jge 0x10046795
lea eax, [esp + 0x4c]
push eax
push 0x1000780c
call fcn.100539eb
mov eax, dword [esp + 0x54]
pop ecx
pop ecx
test eax, eax
je 0x1004678e
or dword [esp + 0xdc], 0xffffffff
dec eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
push 0x1000780c
call fcn.100539eb
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
pop ecx
pop ecx
call fcn.1004b49b
mov dword [esp + 0x54], eax
mov byte [esp + 0x13c], 2
and dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x44]
test ecx, ecx
jle 0x1004659b
lea eax, [esp + 0xb0]
push eax
push 0x1000780c
call fcn.100539eb
pop ecx
pop ecx
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x5c]
call fcn.1004b0f2
mov ecx, eax
call fcn.1002aa16
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, ecx
jl 0x10046559
and dword [esp + 0x60], 0
lea eax, [esp + 0xdc]
and dword [esp + 0x64], 0
inc ecx
and dword [esp + 0x68], 0
push eax
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x68]
call fcn.1002b3d6
mov byte [esp + 0x13c], 3
mov esi, ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], esi
cmp eax, ebx
jl 0x10046725
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov edi, edx
mov ecx, eax
mov dword [esp + 0x24], edx
jmp 0x10046608
cmp dword [ecx + 0x10], esi
jge 0x100465f6
mov ecx, dword [ecx + 8]
jmp 0x10046608
cmp byte [edi + 0xd], 0
je 0x10046602
cmp esi, dword [ecx + 0x10]
cmovl edi, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100465ec
cmp byte [edi + 0xd], 0
jne 0x10046626
mov eax, dword [edi]
jmp 0x10046626
cmp esi, dword [eax + 0x10]
jge 0x10046623
mov edi, eax
mov eax, dword [eax]
jmp 0x10046626
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x10046618
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x78], eax
cmp eax, edi
je 0x10046711
lea ecx, [esp + 0x78]
inc ebx
call fcn.1002b78b
cmp dword [esp + 0x78], edi
jne 0x1004663e
test ebx, ebx
je 0x1004670d
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x58]
call fcn.1004b0f2
push eax
lea ecx, [esp + 0x98]
call fcn.10031177
lea eax, [esp + 0x44]
mov byte [esp + 0x13c], 4
push eax
lea ecx, [esp + 0x98]
call fcn.1002aa16
mov edx, dword [esp + 0x98]
or ebx, 0xffffffff
mov esi, dword [esp + 0x94]
xor ecx, ecx
sub edx, esi
xor edi, edi
sar edx, 2
test edx, edx
je 0x100466bc
mov eax, dword [esi + edi*4]
sub eax, ebx
mov ebx, dword [esi + edi*4]
cmp ecx, eax
cmovg eax, ecx
inc edi
mov ecx, eax
cmp edi, edx
jb 0x100466a8
mov ebx, dword [esp + 0x2c]
mov edx, ecx
cmp ebx, ecx
jle 0x100466d8
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x48]
mov dword [edi + edx*4], eax
inc edx
cmp edx, ebx
jl 0x100466ca
cmp ebx, ecx
cmovl ecx, ebx
mov byte [esp + 0x13c], 3
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x10046709
push esi
call fcn.10054019
xor eax, eax
pop ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
inc esi
mov dword [esp + 0x48], esi
cmp esi, eax
jle 0x100465df
xor ebx, ebx
inc ebx
mov esi, ebx
cmp eax, ebx
jl 0x10046748
mov ebx, dword [esp + 0x60]
push dword [ebx + esi*4]
push 0x100078c0
call fcn.10053e49
inc esi
pop ecx
pop ecx
cmp esi, dword [esp + 0x44]
jle 0x1004672f
xor ebx, ebx
inc ebx
push 0x10007775
call fcn.100545b2
mov eax, dword [esp + 0x64]
pop ecx
test eax, eax
je 0x10046771
push eax
call fcn.10054019
and dword [esp + 0x64], 0
and dword [esp + 0x68], 0
and dword [esp + 0x6c], 0
pop ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x13c], 0
call fcn.1004b159
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x1004651b
dec eax
xor edx, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 0x8430
mov byte [esp + 0x1f], dl
cmp byte [esp + 0x1f], 0
je 0x100467bc
push 0x1eef
push edx
push edx
push 0x192f
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor edx, edx
mov eax, dword [esp + 0x30]
dec dword [esp + 0x20]
jns 0x100464e0
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x38], 0xc92ea21e
jae 0x100467f0
mov eax, edx
cmp dword [esp + 0x38], edx
je 0x100467f2
mov eax, ebx
mov ecx, dword [esp + 0x38]
imul ecx, eax
mov eax, ebx
sub eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 0x2395e2de
setne cl
xor eax, eax
cmp ecx, 0x6aa1c33c
setge al
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], edx
je 0x10046b1e
mov dword [esp + 0x2c], 0x88ad
mov dword [esp + 0x30], 0xc18a
mov dword [esp + 0x34], 0x3e1fe01
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 3
jg 0x10046a90
push 0xffffffffffffffe7
pop esi
mov dword [esp + 0x18], 0xe0a8eac8
mov dword [esp + 0x18], edx
jmp 0x100468a0
mov dword [esp + 0x14], 0xf951fe77
mov dword [esp + 0x14], edx
jmp 0x10046895
mov byte [esp + 0x1f], dl
cmp byte [esp + 0x1f], 0
je 0x10046891
push 0x25b7
push edx
push 0x1831
push 0x17ea
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor edx, edx
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffeb
je 0x1004686e
dec dword [esp + 0x18]
cmp dword [esp + 0x18], esi
jge 0x10046860
mov byte [esp + 0x1f], dl
cmp byte [esp + 0x1f], 0
je 0x100468bb
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
xor edx, edx
mov dword [esp + 0xcc], 5
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x84], edx
jne 0x10046a90
lea ecx, [esp + 0xcc]
call fcn.10045d8a
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x14], ecx
jmp 0x10046907
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x40], 0xe80031aa
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jl 0x100468f7
mov dword [esp + 0x28], ecx
jmp 0x10046979
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], 0xfffffff7
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], ecx
je 0x10046935
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x28]
cmp eax, edx
push 0
setne cl
mov dword [esp + 0x1c], ecx
dec dword [esp + 0x2c]
pop ecx
cmp dword [esp + 0x28], 0xffffffec
jg 0x10046913
mov dword [esp + 0x28], 3
jmp 0x10046a74
mov dword [esp + 0x34], 0x1d81
cmp dword [esp + 0x34], 0xe3b
jge 0x100469aa
push 0x10007ea4
call fcn.10053e49
pop ecx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], 0x389d0e13
mov dword [esp + 0x14], ecx
jmp 0x100469ce
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x3c], 0x83d1f0df
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jl 0x100469be
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x40], ecx
je 0x10046a0a
cmp dword [esp + 0x3c], ecx
je 0x10046a0a
mov ecx, ebx
mov eax, dword [esp + 0x3c]
xor eax, eax
cmp ecx, 0xfffffffb
sete al
xor ecx, ecx
test eax, eax
sets cl
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
imul ecx, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
mov eax, dword [esp + 0x3c]
setle dl
xor ecx, ecx
cmp edx, eax
setl cl
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x34], eax
dec dword [esp + 0x28]
cmp dword [esp + 0x28], esi
jg 0x1004698d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
push 0
pop edx
jle 0x10046852
cmp dword [esp + 0x2c], edx
je 0x10046ae9
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
je 0x10046ab4
mov eax, ebx
cmp dword [esp + 0x30], edx
jne 0x10046ab6
mov eax, edx
mov ecx, 0x96fcd4d3
cmp ecx, eax
sbb eax, eax
xor ecx, ecx
neg eax
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x20]
jle 0x10046ade
mov eax, ebx
cmp dword [esp + 0x38], edx
jne 0x10046ae0
mov eax, edx
cmp eax, dword [esp + 0x88]
jl 0x10046aeb
mov ebx, edx
mov eax, dword [esp + 0x88]
imul eax, ebx
cmp eax, 0xe8e23095
mov eax, dword [esp + 0x2c]
sbb edx, edx
neg eax
xor ecx, ecx
neg edx
cmp eax, 0xb400
setl cl
xor eax, eax
cmp ecx, edx
setg al
mov dword [esp + 0x10], eax
jmp 0x10046fbd
mov dword [esp + 0x30], 0x283066c9
xor ecx, ecx
mov dword [esp + 0x24], 0x61d2250d
mov dword [esp + 0x2c], 0x10789328
push 6
pop eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x732a
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x7b47e0fa
mov dword [esp + 0x14], 0x6bae
mov dword [esp + 0x14], 0xfffffff6
mov eax, dword [esp + 0x18]
cmp eax, 0x34ca
setge cl
cmp ecx, ebx
sbb eax, eax
xor edx, edx
neg eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
mov eax, dword [esp + 0x2c]
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x24]
setle cl
dec dword [esp + 0x24]
cmp eax, ecx
jne 0x10046bab
mov ecx, ebx
jmp 0x10046bad
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov edx, ebx
mov dword [esp + 0x24], eax
xor eax, eax
cmp ecx, 0x5809
setl al
xor ecx, ecx
sub edx, eax
add edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp edx, eax
setg cl
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
setle cl
xor eax, eax
test ecx, ecx
setns al
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp eax, edx
setle cl
cmp dword [esp + 0x24], ecx
jge 0x10046c14
cmp dword [esp + 0x14], 0
je 0x10046c14
mov edx, ebx
jmp 0x10046c16
xor edx, edx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, edx
setl cl
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0x86adb69c
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], 4
mov dword [esp + 0x2c], 0
jmp 0x10046c66
mov eax, dword [esp + 0x2c]
mov dword [esp + eax*4 + 0xd0], 7
inc dword [esp + 0x2c]
cmp dword [esp + 0x2c], 3
jl 0x10046c53
mov dword [esp + 0x10], 0
jmp 0x10046e83
mov dword [esp + 0x24], 0x552bf338
mov dword [esp + 0x30], 0x1738
cmp dword [esp + 0x30], 0xd58
jge 0x10046e2c
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x54]
push eax
push 0x10007864
call fcn.100539eb
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0xfc]
add esp, 0xc
inc eax
push eax
call fcn.1002aa6b
xor ecx, ecx
mov byte [esp + 0x13c], 5
mov esi, ecx
cmp dword [esp + 0x74], ecx
jle 0x10046d28
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x74]
push eax
push 0x10007864
call fcn.100539eb
imul ecx, dword [esp + 0x7c], 0xc
lea eax, [esp + 0x8c]
add esp, 0xc
add ecx, dword [esp + 0xf0]
push eax
call fcn.1002aa16
imul ecx, dword [esp + 0x80], 0xc
lea eax, [esp + 0x70]
push eax
add ecx, dword [esp + 0xf4]
call fcn.1002aa16
inc esi
cmp esi, dword [esp + 0x74]
jl 0x10046cd3
xor ecx, ecx
mov esi, dword [esp + 0x50]
lea eax, [esp + 0xe4]
inc esi
mov dword [esp + 0x24], ecx
push eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xa4], ecx
lea eax, [esi + 0x1f]
mov dword [esp + 0xa8], ecx
shr eax, 5
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa4]
push eax
call fcn.1002e8ac
and dword [esp + 0xac], 0
push esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x140], 6
call fcn.1002b4c4
mov byte [esp + 0x13c], 7
mov edi, ebx
cmp dword [esp + 0x50], ebx
jl 0x10046dfc
mov edx, dword [esp + 0xa0]
mov esi, edi
mov ecx, edi
shr esi, 5
and ecx, 0x1f
mov eax, ebx
shl eax, cl
test dword [edx + esi*4], eax
jne 0x10046df5
and dword [esp + 0x7c], 0
lea eax, [esp + 0x6c]
and dword [esp + 0x6c], 0
lea ecx, [esp + 0xf0]
push eax
lea eax, [esp + 0x80]
mov edx, edi
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.10046114
mov eax, dword [esp + 0x78]
xor ecx, ecx
cdq
add esp, 0xc
sub eax, edx
sar eax, 1
cmp dword [esp + 0x7c], eax
setg cl
add dword [esp + 0x24], ecx
inc edi
cmp edi, dword [esp + 0x50]
jle 0x10046d95
push dword [esp + 0x24]
push 0x100078b4
call fcn.10053e49
pop ecx
pop ecx
lea ecx, [esp + 0xa0]
call fcn.1002a966
lea ecx, [esp + 0xf0]
mov byte [esp + 0x13c], 0
call fcn.1002b69b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0xd0]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xd0], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0xd0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0xaa4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xd4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jle 0x10046c7a
mov dword [esp + 0x2c], 0
jmp 0x10046eab
mov eax, dword [esp + 0x2c]
mov dword [esp + eax*4 + 0x108], 0xffffffff
inc dword [esp + 0x2c]
cmp dword [esp + 0x2c], 3
jl 0x10046e98
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x90]
mov eax, dword [esp + 0x110]
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x90]
dec eax
neg eax
sbb eax, eax
mov edx, eax
mov eax, dword [esp + 0x90]
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edx
mov eax, dword [esp + 0x110]
setle cl
xor edx, edx
add ecx, eax
mov eax, dword [esp + 0x34]
cmp ecx, eax
setle dl
mov dword [esp + 0x30], edx
xor edx, edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x30]
cmp eax, ecx
mov esi, dword [esp + 0x110]
mov eax, dword [esp + 0x8c]
setne dl
add esi, edx
neg esi
sbb esi, esi
xor ecx, ecx
neg esi
cmp esi, eax
mov eax, dword [esp + 0x34]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x88]
setg dl
sub edx, eax
cmp edx, dword [esp + 0x20]
jne 0x10046f5f
cmp dword [esp + 0x110], 0
jne 0x10046f61
xor ebx, ebx
mov dword [esp + 0x30], ebx
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0xfc]
cmp dword [eax + 4], ebx
mov dword [esp + 0x10], 0xfffffff8
mov ecx, dword [esp + 0x20]
setne bl
mov eax, dword [esp + 0x10]
xor edx, edx
cmp ecx, eax
setle dl
xor eax, eax
cmp edx, ebx
setl al
xor ecx, ecx
cmp eax, 0x419813da
mov eax, dword [esp + 0x84]
setge cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x34]
setg dl
xor ecx, ecx
cmp edx, eax
setg cl
mov dword [esp + 0x20], ecx
or dword [esp + 0x13c], 0xffffffff
cmp dword [esp + 0xfc], 0
je 0x10046fdc
push dword [esp + 0xfc]
call fcn.10054019
pop ecx
mov eax, dword [esp + 0xe8]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0xec]
mov edi, edx
mov esi, eax
call fcn.10045d18
mov ecx, dword [esp + 0x134]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret