Function at 0x404c10
Capabilities:
Execute shellcode via indirect call
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0x100], eax
cmp byte [ecx + 0x14], 0
je 0x40589e
mov edi, edx
mov dword [esp + 0x20], ecx
test byte [ecx + 0x10], 4
jne 0x404c6e
mov edx, edi
mov esi, edx
movzx eax, byte [edx]
cmp eax, 0xff
je 0x4057ab
mov edx, esi
cmp eax, 0xeb
je 0x4057c1
cmp esi, edx
jne 0x404c45
cmp esi, edi
jne 0x4058a9
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
mov eax, dword [0x4508b4]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x404cdf
push 0x4508b4
call fcn.00422a27
add esp, 4
cmp dword [0x4508b4], 0xffffffff
jne 0x404cdf
lea esi, [esp + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x4508b0], eax
push 0x4508b4
call fcn.00422a79
add esp, 4
mov esi, dword [0x4508b0]
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov eax, dword [0x451824]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4055fd
mov dword [esp + 4], esi
push 0x451828
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esp + 0x58], 0
jne 0x4058ba
mov dword [esp + 0xc], 0
mov ebx, dword [0x45181c]
test ebx, ebx
jne 0x404d61
mov esi, 0xc
push esi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx], esi
mov dword [0x45181c], ebx
cmp byte [esp + 0x58], 0
jne 0x4058f1
cmp dword [ebx + 4], 0
jne 0x404dc7
push 0x14
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov esi, eax
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jne 0x404d98
mov ecx, ebx
call fcn.00405f30
mov eax, dword [ebx + 4]
lea eax, [eax + eax*2]
mov ecx, dword [ebx]
mov dword [ecx + eax*4 + 4], edi
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4], edx
mov dword [ecx + eax*4 + 8], esi
inc dword [ebx + 4]
mov ebx, dword [0x45181c]
test ebx, ebx
je 0x405893
cmp dword [ebx + 4], 0
je 0x405893
mov esi, dword [ebx]
mov ebx, dword [esi + 8]
test ebx, ebx
mov esi, dword [esp + 4]
je 0x405c7a
test esi, esi
je 0x405c7a
cmp dword [ebx + 4], 0
jne 0x4055f5
mov edi, ebx
mov eax, dword [0x4508b4]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x404e46
push 0x4508b4
call fcn.00422a27
add esp, 4
cmp dword [0x4508b4], 0xffffffff
jne 0x404e46
lea esi, [esp + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov esi, dword [esp + 4]
mov dword [0x4508b0], eax
push 0x4508b4
call fcn.00422a79
add esp, 4
mov ebx, dword [0x4508b0]
mov eax, esi
xor edx, edx
div ebx
sub ebx, edx
test edx, edx
cmove ebx, edx
add ebx, esi
mov eax, edi
lea esi, [edi + 8]
mov dword [eax + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp byte [esp + 0x58], 0
jne 0x405ba2
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x405c6d
mov ebx, edi
mov dword [edi + 4], eax
cmp dword [esi], 0
je 0x405c7a
push 0x451828
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x451824]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405645
push 0x451828
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x405c7a
mov esi, dword [ebx + 0x10]
shl esi, 7
mov edx, esi
or edx, 0x7f
mov ecx, dword [ebx + 0xc]
cmp edx, ecx
jb 0x404f66
cmp ecx, dword [ebx + 8]
jae 0x405c7a
mov eax, dword [0x4508ac]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4056cf
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
push 0x20
push 0x1000
push dword [0x4508a8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x405c7a
mov eax, dword [0x4508ac]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405711
mov eax, dword [0x4508a8]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 4]
add esi, eax
lea edi, [esp + 0xac]
mov dword [edi - 4], ebx
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, 0x80
mov dword [edi + 0x14], eax
mov byte [edi + 0x18], 1
push edi
push 0x40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov esi, dword [edi - 4]
mov ecx, dword [edi]
mov dword [esp + 0x1c], ecx
cmovne eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 4]
mov dword [esp + 8], ecx
mov cl, byte [edi + 0x18]
mov edx, dword [edi + 8]
mov dword [esp + 0xc], esi
test esi, esi
je 0x404fd6
cmp dword [esp + 8], 0
je 0x404fd9
test edx, edx
je 0x404fd9
cmp dword [esp + 0x10], 0
je 0x404fd9
test cl, cl
je 0x404fd9
inc dword [ebx + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 8]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x70], 1
push 0x451828
mov byte [esp + 0x1f], cl
mov esi, edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [esp + 0x1b]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov ebx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 4], edi
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov byte [esp + 0x4c], cl
xor eax, eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x6c], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x4059b1
cmp dword [esp + 8], 0
mov edi, dword [esp + 0x1c]
je 0x405599
cmp dword [esp + 0x2c], 0
je 0x405599
cmp dword [esp + 0x10], 0
je 0x405599
test bl, bl
je 0x405599
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov edx, dword [esp + 4]
lea ecx, [edx + 4]
cmp ecx, esi
ja 0x4059fe
mov ecx, dword [esp + 8]
mov dword [ecx + edx], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
add ecx, 4
mov eax, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], edx
test edx, edx
je 0x4059c0
mov al, byte [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test edx, edx
je 0x405599
test ecx, ecx
je 0x405599
test edi, edi
je 0x405599
test al, al
je 0x405599
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov edx, dword [esp + 4]
lea ecx, [edx + 4]
cmp ecx, dword [esp + 0x48]
ja 0x405a43
mov ecx, dword [esp + 0x38]
mov dword [ecx + edx], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
add ecx, 4
mov eax, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], edx
test edx, edx
je 0x4059dc
mov al, byte [esp + 0x4c]
cmp dword [esp + 0x38], 0
je 0x40558d
cmp dword [esp + 0x3c], 0
je 0x40558d
cmp dword [esp + 0x34], 0
je 0x40558d
test al, al
je 0x40558d
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
xor eax, eax
dec eax
mov dword [esp + 8], eax
xor esi, esi
xor eax, eax
mov ebx, esi
movzx ecx, byte [edi + ebx]
cmp ecx, 0x65
jg 0x4051d4
lea edx, [ecx - 0x2e]
cmp edx, 0x10
ja 0x4051c7
mov esi, 0x10101
bt esi, edx
jb 0x405753
add ecx, 0xffffff9c
cmp ecx, 2
jae 0x4051fa
jmp 0x405753
cmp ecx, 0x66
je 0x405805
cmp ecx, 0x67
je 0x405814
add ecx, 0xffffff10
cmp ecx, 3
ja 0x4051fa
cmp ecx, 1
jne 0x405a4f
test al, 0xc
jne 0x40558d
movzx eax, byte [edi + ebx]
mov ecx, eax
and cl, 0xfc
cmp cl, 0x88
jne 0x40523c
movzx eax, byte [edi + ebx + 1]
mov esi, eax
shr esi, 6
xor edx, edx
inc edx
cmp esi, 3
jne 0x40576d
lea esi, [edx + ebx]
inc esi
mov dword [esp + 0x80], esi
cmp esi, 5
jb 0x4051a4
jmp 0x40529d
cmp eax, 0xa0
jg 0x405256
cmp eax, 0xf
je 0x405b3a
cmp eax, 0x33
jne 0x40526c
jmp 0x405b62
cmp eax, 0xa1
je 0x405765
cmp eax, 0xb8
je 0x405765
mov ecx, eax
and cl, 0xf8
cmp cl, 0x40
je 0x405298
cmp eax, 0x68
je 0x405765
cmp eax, 0x83
je 0x405851
mov ecx, eax
and cl, 0xf0
cmp cl, 0x50
jne 0x40586b
inc ebx
mov esi, ebx
jmp 0x40522a
mov eax, dword [esp + 4]
add eax, esi
cmp dword [esp + 0xc], 0
je 0x405a5e
cmp eax, dword [esp + 0x48]
ja 0x405a8f
mov eax, dword [esp + 4]
add eax, dword [esp + 0x38]
push esi
push edi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x40], eax
cmp dword [esp + 0x30], 0
mov ecx, eax
mov dword [esp + 4], eax
je 0x405a62
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40558d
cmp dword [esp + 0x3c], 0
je 0x40558d
cmp dword [esp + 0x34], 0
je 0x40558d
cmp byte [esp + 0x4c], 0
je 0x40558d
cmp esi, 0x64
ja 0x40558d
mov ecx, dword [esp + 0x48]
cmp dword [esp + 8], 0
jns 0x405eef
mov edx, dword [esp + 4]
cmp edx, ecx
jae 0x405a99
mov byte [eax + edx], 0xe9
mov ecx, dword [esp + 0x40]
inc ecx
mov eax, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x30], 0
je 0x405a7b
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 4]
lea eax, [edx + 4]
cmp eax, ecx
ja 0x405aa3
lea eax, [edi + esi]
mov ecx, dword [esp + 0x3c]
add ecx, edx
sub eax, ecx
add eax, 0xfffffffc
mov ecx, dword [esp + 0x38]
mov dword [ecx + edx], eax
add dword [esp + 0x40], 4
cmp byte [esp + 0x4c], 0
je 0x40558d
cmp dword [esp + 0x30], 0
je 0x40558d
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
je 0x40558d
lea eax, [esp + 0xc8]
mov edx, dword [esp + 0x20]
mov dword [eax - 0x20], edx
mov dword [eax - 0x1c], edi
mov dword [eax - 0x18], esi
xor ebx, ebx
mov dword [eax - 0x14], ebx
mov dword [eax - 0x10], ebx
mov dword [eax - 8], ebx
mov dword [eax - 4], 0x10
mov dword [eax - 0xc], eax
mov byte [eax + 0x10], 1
mov eax, edi
lea edi, [esp + 0xdc]
mov ecx, edi
push esi
push eax
call fcn.00406160
add esp, 8
cmp dword [edi + 8], ebx
je 0x405503
cmp byte [esp + 0xd8], 0
je 0x405503
lea esi, [esp + 0xbc]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x405acb
mov ecx, dword [esp + 0xbc]
mov byte [ecx + eax], 0xe9
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xc0]
inc eax
mov dword [esp + 0xc0], eax
inc edi
mov dword [esp + 0xb4], edi
add edi, dword [esp + 0xac]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0xc4]
ja 0x405ae8
mov edx, dword [ebp + 8]
sub edx, edi
add edx, 0xfffffffc
mov ecx, dword [esp + 0xbc]
mov dword [ecx + eax], edx
add dword [esp + 0xc0], 4
mov eax, dword [esp + 0xb4]
add eax, 4
mov dword [esp + 0xb4], eax
cmp eax, dword [esp + 0xb0]
jb 0x405b05
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
cmp dword [esp + 0xe4], 0
je 0x405823
cmp byte [esp + 0xd8], 0
je 0x405823
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x405503
mov ecx, dword [esp + 0xb8]
add ecx, dword [esp + 0xac]
push eax
push dword [esp + 0xc0]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0xc0]
add dword [esp + 0xb8], eax
mov dword [esp + 0xc0], esi
mov eax, dword [0x4508ac]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40568d
mov esi, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x405561
mov edi, dword [0x4508a8]
lea ebx, [esi + eax*8]
lea eax, [esp + 0x84]
push eax
push dword [esi]
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 8
cmp esi, ebx
jne 0x40553f
mov esi, dword [esp + 0xe0]
lea eax, [esp + 0xec]
mov dword [eax - 8], 0
cmp esi, eax
jne 0x405aad
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc8]
cmp eax, ecx
jne 0x405abc
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x405a11
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
setne bl
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4055c2
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4055c2
lea edx, [esp + 0x34]
push edx
push ecx
push dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esp + 0x70], 0
je 0x4055dd
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4055dd
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4059e9
mov ecx, dword [esp + 0x100]
xor ecx, ebp
call fcn.004230e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebx + 8]
jmp 0x404e91
push 0x451824
call fcn.00422a27
add esp, 4
cmp dword [0x451824], 0xffffffff
jne 0x404d14
push 0x1000000
push 0xfa0
push 0x451828
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x451820], 1
push 0x451824
call fcn.00422a79
add esp, 4
jmp 0x404d14
push 0x451824
call fcn.00422a27
add esp, 4
cmp dword [0x451824], 0xffffffff
jne 0x404ec6
push 0x1000000
push 0xfa0
push 0x451828
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x451820], 1
push 0x451824
call fcn.00422a79
add esp, 4
jmp 0x404ec6
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x405524
lea esi, [esp + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x405524
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x404f18
lea edi, [esp + 0xa8]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x404f18
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x404f5b
lea edi, [esp + 0xa8]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x404f5b
mov cl, 2
test al, 2
jne 0x40558d
or al, cl
inc ebx
jmp 0x4051a8
add ebx, 5
jmp 0x405299
test esi, esi
jne 0x40582e
mov ecx, eax
and ecx, 7
cmp ecx, 5
je 0x40583d
cmp ecx, 4
jne 0x405c8c
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + ebx + 2]
and cl, 7
xor edx, edx
cmp cl, 5
sete dl
lea ecx, [edx*4 + 1]
jmp 0x40583d
cmp byte [esi + 1], 0x25
mov edx, esi
jne 0x404c62
mov eax, dword [esi + 2]
mov edx, dword [eax]
jmp 0x404c62
movsx eax, byte [esi + 1]
add eax, esi
add eax, 2
mov ecx, eax
sub ecx, esi
shl ecx, 0x18
add ecx, 0xfe000000
mov edx, esi
test ecx, ecx
jle 0x404c62
mov ebx, edi
sar ecx, 0x18
xor edi, edi
mov dl, 1
cmp byte [edi + esi + 2], 0x90
jne 0x405b99
movsx edi, dl
inc dl
cmp ecx, edi
jg 0x4057ea
mov edx, eax
jmp 0x405b9b
mov cl, 4
test al, 4
je 0x40575d
jmp 0x40558d
mov cl, 8
test al, 8
je 0x40575d
jmp 0x40558d
mov dword [eax], 0
jmp 0x405503
mov ecx, 2
cmp esi, 1
je 0x40583d
mov ecx, 5
and al, 7
xor edx, edx
cmp al, 4
sete dl
add edx, ecx
mov edi, dword [esp + 0x14]
jmp 0x405226
mov al, byte [edi + ebx + 1]
cmp al, 0xc0
jb 0x405b75
add ebx, 3
mov esi, ebx
mov edi, dword [esp + 0x14]
jmp 0x40522a
cmp eax, 0xff
je 0x405ca0
cmp eax, 0xe9
je 0x405c94
cmp eax, 0x6a
mov edi, dword [esp + 0x14]
je 0x405b6d
jmp 0x40558d
int3
int3
mov ecx, esi
call fcn.00423b60
test al, al
cmovne edi, esi
jmp 0x404c6e
lea esi, [esp + 0x50]
lea ecx, [esp + 0xa8]
mov dword [ecx], esi
mov dword [ecx + 4], 0
call fcn.004223b0
mov dword [esp + 0xc], eax
cmp byte [esi + 8], 0
je 0x404d36
push esi
call fcn.004275b0
add esp, 4
mov edi, eax
jmp 0x404d36
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], esi
mov eax, ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jle 0x40593e
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0xc]
shr edx, 1
lea eax, [edx + edx*2]
lea eax, [esi + eax*4]
cmp dword [eax], ecx
jae 0x405935
add eax, 0xc
not edx
add edx, dword [esp + 8]
mov esi, eax
mov dword [esp + 8], edx
test edx, edx
jg 0x405914
jmp 0x40593e
jne 0x40592b
cmp dword [eax + 4], edi
jb 0x405920
jmp 0x40592b
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax*4]
cmp esi, eax
je 0x405961
mov eax, dword [esp + 0xc]
cmp dword [esi], eax
ja 0x405961
cmp dword [esi + 4], edi
jae 0x404dc9
lea ecx, [esp + 0xa8]
mov dword [ecx + 4], edi
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov edi, ecx
push 0x14
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov dword [edi + 8], eax
mov ecx, ebx
mov edx, esi
push edi
call fcn.00444210
add esp, 4
mov esi, eax
mov eax, dword [edi + 8]
test eax, eax
je 0x404dc9
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x404dc9
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_EncodePointer]
add dword [esp + 4], 4
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov ecx, dword [esp + 4]
add ecx, 4
mov eax, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], 0
jmp 0x405193
lea edx, [esp + 0x54]
push edx
push ecx
push dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4055dd
mov byte [esp + 0x4c], 0
xor ecx, ecx
inc ecx
xor eax, eax
mov edx, dword [esp + 8]
jmp 0x405102
xor esi, esi
mov dword [esp + 0x40], esi
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
cmp dword [esp + 0x30], esi
je 0x405ed4
cmp dword [esp + 0x48], 3
jbe 0x405ee1
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
add dword [esp + 0x40], 4
jmp 0x405599
mov byte [esp + 0x4c], 0
xor eax, eax
jmp 0x40516a
mov cl, 1
test al, 1
je 0x40575d
jmp 0x40558d
mov dword [esp + 0x40], eax
cmp esi, 0x64
ja 0x40558d
cmp dword [esp + 8], 0
jns 0x405eeb
inc eax
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 4
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x14]
jmp 0x405382
mov byte [esp + 0x4c], 0
jmp 0x4052e6
mov byte [esp + 0x4c], 0
jmp 0x405359
mov byte [esp + 0x4c], 0
jmp 0x405382
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x405577
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x40558d
mov ecx, esi
push 1
call fcn.0040e270
test al, al
je 0x405e69
mov eax, dword [esp + 0xc0]
jmp 0x405416
mov ecx, esi
push 4
call fcn.0040e270
test al, al
je 0x405e84
mov eax, dword [esp + 0xc0]
jmp 0x405456
lea esi, [esp + 0xa8]
lea edi, [esp + 0x84]
mov byte [esp + 0x84], 0x90
mov ecx, esi
mov edx, edi
call fcn.00425290
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xb0]
jae 0x40548e
jmp 0x405b13
mov al, byte [edi + ebx + 1]
and al, 0xfe
cmp al, 0x10
jne 0x40558d
lea eax, [ebx + 2]
lea ecx, [esp + 0x78]
mov dword [ecx + 8], eax
call fcn.00423bd0
lea esi, [ebx + eax]
add esi, 2
jmp 0x40522a
cmp byte [edi + ebx + 1], 0xc0
jb 0x40558d
add ebx, 2
jmp 0x405299
mov ecx, eax
and cl, 0xc0
cmp cl, 0x40
mov edi, dword [esp + 0x14]
jne 0x40558d
and al, 7
cmp al, 4
je 0x40558d
add ebx, 4
jmp 0x405299
mov edx, esi
mov edi, ebx
jmp 0x404c62
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0xa8]
mov dword [ecx], eax
mov dword [ecx + 4], 0
call fcn.004223b0
mov dword [esp + 8], eax
lea ecx, [esp + 0x50]
cmp byte [ecx + 8], 0
je 0x405e98
push ecx
call fcn.004275b0
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x451848]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405ea3
mov ecx, dword [0x451844]
test ecx, ecx
je 0x405cb7
lea eax, [esp + 0x84]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov edx, dword [esp + 4]
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
movaps xmm0, xmmword [0x4452c0]
movups xmmword [esp + 0xa8], xmm0
mov dword [esp + 0xb0], eax
call dword [section..00cfg]
xor eax, eax
inc eax
push eax
lea edx, [esp + 0xac]
push edx
push eax
push 0x2000
push ebx
xor eax, eax
push eax
push dword [esp + 0x24]
call ecx
mov ebx, edi
mov dword [edi + 4], eax
test eax, eax
jne 0x404e91
jmp 0x405c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], 0
push 0x451828
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x4055dd
xor ecx, ecx
inc ecx
jmp 0x40583d
lea esi, [ebx + 5]
mov dword [esp + 8], ebx
jmp 0x405862
mov edi, dword [esp + 0x14]
cmp byte [edi + ebx + 1], 0x25
jne 0x40558d
add ebx, 6
jmp 0x405299
lea ecx, [edi + 1]
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
push eax
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
mov ecx, dword [esp + 0x10]
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push dword [esp + 0x18]
call fcn.00427430
test eax, eax
je 0x405c73
push 1
push 0x2000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404e8c
jmp 0x404e74
mov byte [esp + 0xd8], 0
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xc0]
jmp 0x40543f
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0xb4]
jmp 0x405481
int3
push 0x451848
call fcn.00422a27
add esp, 4
cmp dword [0x451848], 0xffffffff
jne 0x405bff
call fcn.00444360
push 0x451848
call fcn.00422a79
add esp, 4
jmp 0x405bff
mov dword [esp + 0x40], 4
jmp 0x405599
mov byte [esp + 0x4c], 0
jmp 0x405599
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 8]
add edx, eax
add edx, 5
cmp edx, ecx
jbe 0x405f0a
mov byte [esp + 0x4c], 0
jmp 0x405a86
mov ecx, dword [esp + 8]
add ecx, eax
inc ecx
mov edx, dword [esp + 0x38]
add eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov edi, ebx
sub edi, eax
add dword [edx + ecx], edi
mov edi, ebx
jmp 0x405382