Function at 0x485300
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e75c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
push 0x5194ec
mov esi, ecx
mov dword [esp + 0x88], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0xec]
mov ebx, dword [esi + 0x58]
mov dword [esp + 0x24], ecx
lea ecx, [esi + 0x4c]
push edx
mov dword [esp + 0xe8], 0
mov dword [esp + 0x38], ebx
call fcn.004574e0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
cmp word [eax], 0
mov eax, dword [esp + 0xf0]
setne byte [esp + 0x1b]
mov ebp, eax
and ebp, 0x10000
cmp ebx, 0x12345002
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ebp
jne 0x4853b3
mov ebp, 0x10000
mov dword [esp + 0x38], ebp
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
and eax, 0xfffe0000
mov dword [esp + 0x54], eax
xor eax, eax
push 0x30
mov dword [esp + 0x74], ecx
mov dword [esi + 0x50], eax
mov dword [esp + 0x70], edx
mov dword [esi + 0x54], eax
mov dword [esp + 0x18], eax
call fcn.004c86a5
mov edi, eax
add esp, 4
test edi, edi
je 0x4853f8
lea ecx, [edi + 8]
call fcn.00446550
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x2c], eax
jmp 0x4853fa
xor edi, edi
cmp ebx, 0xfffff000
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
je 0x485414
cmp ebx, 1
mov byte [esp + 0x11], 0
jne 0x485419
mov byte [esp + 0x11], 1
cmp ebx, 0xfffff000
je 0x48542a
test ebx, ebx
mov byte [esp + 0x13], 0
jne 0x48542f
mov byte [esp + 0x13], 1
cmp ebx, 0xfffff000
jne 0x485459
test ebp, ebp
jne 0x485459
mov eax, dword [esp + 0xec]
push ebp
push eax
mov ecx, edi
call fcn.004648c0
test eax, eax
jle 0x485459
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x12345003
mov al, byte [esp + 0x13]
test al, al
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
je 0x48548e
test ebp, ebp
jne 0x48548e
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x48548e
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push ebp
push eax
push ebp
mov dword [esi + 0x58], ebp
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
je 0x48549d
mov dword [esp + 0x14], 0xe
mov cl, byte [esp + 0x11]
test cl, cl
je 0x4854da
test ebp, ebp
jne 0x4854da
test eax, eax
jne 0x4854da
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push 1
push eax
push ebp
mov dword [esi + 0x58], 1
call edi
test eax, eax
mov dword [esi + 0x54], eax
je 0x4854da
mov dword [esp + 0x14], 3
cmp ebx, 0xfffff000
je 0x4854e7
cmp ebx, 2
jne 0x485549
test ebp, ebp
jne 0x485549
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x485549
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push 2
push eax
push ebp
mov dword [esi + 0x58], 2
call edi
mov edi, eax
test edi, edi
je 0x485533
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push 4
push ecx
push edx
push 1
push edi
call dword [sym.imp.USER32.dll_CopyImage]
push edi
mov dword [esi + 0x54], eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x485549
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
mov al, byte [esp + 0x11]
xor ecx, ecx
test al, al
mov byte [esp + 0x12], 0
mov dword [esp + 0x28], ecx
jne 0x485568
mov al, byte [esp + 0x13]
test al, al
je 0x48595f
cmp dword [esi + 0x54], ecx
jne 0x48595f
cmp ebp, ecx
jne 0x48595f
mov eax, dword [esp + 0xec]
cmp word [eax], 0x23
mov edi, dword [esi + 0x4c]
mov dword [esp + 0x40], ecx
je 0x4855ee
cmp edi, ecx
mov dword [esp + 0x40], 1
je 0x4855b3
mov ax, word [edi]
cmp ax, cx
je 0x4855b3
cmp ax, 0x23
je 0x4855b3
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4855a1
mov bp, word [edi]
test bp, bp
mov word [edi], 0
je 0x4855c5
mov byte [esp + 0x12], 1
mov eax, dword [esi + 0x4c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [esi + 0x50], ebx
mov dword [esp + 0x20], ebx
mov word [edi], bp
je 0x48595f
or byte [esp + 0x12], 2
jmp 0x485601
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x12], 3
xor eax, eax
mov dword [esp + 0x2c], eax
cmp word [edi], ax
mov byte [esp + 0xe4], 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], edi
jne 0x4856f5
mov ebp, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], ecx
mov cl, byte [esp + 0x11]
test cl, cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
je 0x48566f
lea edx, [esp + 0x74]
push edx
push 0x45b0e0
push 0xe
push ebx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x48566f
mov ebx, dword [esp + 0x38]
mov edi, eax
mov dword [esp + 0x30], eax
jmp 0x485855
mov cl, byte [esp + 0x13]
test cl, cl
je 0x48568a
lea eax, [esp + 0x74]
push eax
push 0x45b0e0
push 2
push ebx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x485705
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4856c5
mov al, byte [esp + 0x13]
test al, al
je 0x4856c5
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x30]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4857b4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0xe
mov dword [esi + 0x58], 0
mov byte [esp + 0xe4], 0
call fcn.0043f290
jmp 0x48595f
lea ecx, [edi + 2]
push ecx
call fcn.00447090
add esp, 4
mov dword [esp + 0x30], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [esp + 0x44], 0
mov ebx, 3
mov ebp, edi
je 0x485737
mov edi, edi
cmp ax, 0x7c
je 0x485737
mov ax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x485720
jmp 0x48585d
cmp word [ebp], 0
je 0x48585d
add ebp, 2
cmp word [ebp], 0
je 0x48585d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push ebp
push str.Bitmap
call ebx
test eax, eax
jne 0x48576c
mov ebx, 2
jmp 0x48569e
push ebp
push str.ICON
call ebx
test eax, eax
jne 0x485792
mov dword [esp + 0x44], 1
mov ebx, 3
mov dword [esp + 0x28], 4
jmp 0x48585d
push ebp
push str.ICON_GROUP
call ebx
test eax, eax
je 0x485848
push ebp
push str.ICONGROUP
call ebx
test eax, eax
je 0x485848
mov ebx, ebp
push 2
mov dword [esp + 0x64], 0
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x60], eax
je 0x4857d1
mov byte [eax], 0
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x64]
push ecx
push ebx
push edx
push eax
mov byte [esp + 0xf8], 2
call fcn.00422b90
mov edi, eax
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp ebx, 2
mov ebp, eax
je 0x485827
mov cl, byte [esp + 0x11]
test cl, cl
je 0x485827
test edi, edi
je 0x485827
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x4858e1
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
jmp 0x485904
mov dword [esp + 0x44], 1
mov ebx, 0xe
mov dword [esp + 0x28], 2
mov al, byte [esp + 0x11]
test al, al
je 0x485887
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x50]
push eax
mov eax, dword [esi + 0x2c]
push eax
push ecx
push edi
push edx
call fcn.0045b130
add esp, 0x18
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x485896
mov dword [esp + 0x40], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4858c2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
mov byte [esp + 0xe4], 0
call fcn.0043f290
jmp 0x48595f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x485696
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0
call fcn.0043f290
jmp 0x48595f
cmp edi, ebx
je 0x485904
mov edi, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call fcn.004648c0
test eax, eax
jle 0x485904
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x12345003
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x485921
cmp dword [esp + 0x40], ebx
je 0x485921
cmp dword [esp + 0x20], ebx
je 0x485921
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x50], ebx
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x48593d
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call edi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0xe4], 0
je 0x48595f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call edi
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x48596d
mov dword [esi + 0x58], 0xffffffff
mov eax, dword [esp + 0x34]
xor ebp, ebp
cmp eax, 0xfffff000
je 0x485985
cmp eax, 0x12345001
jne 0x485ae0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x485ae0
cmp dword [esi + 0x58], 0xffffffff
jne 0x485ae0
mov eax, dword [esi + 0x4c]
push eax
call fcn.004abec0
add esp, 4
test eax, eax
je 0x485ae0
lea eax, [esi + 0x34]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x20], 0
call fcn.004619c0
mov eax, dword [0x51917c]
test eax, eax
jne 0x4859d8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4859dd
mov ebx, dword [eax + 0x18]
jmp 0x4859df
xor ebx, ebx
push 0xffff
push ebx
sub esp, 0x10
mov ebx, esp
xor eax, eax
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov edx, 1
mov edi, edx
mov dword [ebx + 8], edx
push 0x48000000
lea ecx, [esp + 0xa4]
mov dword [ebx + 0xc], edi
call fcn.004534a0
test eax, eax
je 0x485a29
mov eax, dword [esi + 0x4c]
push eax
lea ecx, [esp + 0x8c]
call fcn.00443b70
mov edi, eax
jmp 0x485a2d
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
call fcn.00455cf0
test edi, edi
je 0x485ae0
push 0x54
call fcn.004c86a5
add esp, 4
test eax, eax
je 0x485a5e
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004619c0
mov edi, eax
jmp 0x485a60
xor edi, edi
mov ecx, dword [esi + 0x14]
mov ebx, dword [esp + 0x24]
mov word [ecx], 0
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x50]
push 0xffff
push edx
mov edx, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x6c]
or eax, 0x48000007
push eax
mov ecx, edi
call fcn.004534a0
mov eax, dword [esi + 0x4c]
push eax
mov ecx, edi
call fcn.00443b70
mov dword [esi + 0x58], 0x12345001
mov dword [esi + 0x1c], edi
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x54], ecx
mov ecx, ebx
call fcn.00444fb0
test eax, eax
je 0x485ae0
cmp eax, 0xffffffff
je 0x485ae0
mov edx, dword [edi + 0x18]
push 0
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov bl, byte [esp + 0x1b]
test bl, bl
mov edi, dword [esp + 0x14]
jne 0x485af4
or edi, 0x8000000
jmp 0x485af9
mov ebp, 0x100
mov eax, dword [esi + 0x48]
mov edx, 1
cmp eax, edx
jl 0x485b0b
or edi, 0x800000
mov eax, dword [esi + 0x58]
test eax, eax
jge 0x485b1d
mov al, byte [esp + 0x12]
test al, al
je 0x485b1d
mov dword [esi + 0x58], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x485b41
mov eax, dword [esi + 0x54]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x485d80
cmp ecx, edx
jne 0x485b4d
mov eax, dword [esi + 0x54]
push eax
push 1
jmp 0x485b2a
mov eax, dword [esi + 0x58]
test eax, eax
jge 0x485c4c
cmp ecx, 0xfffff000
je 0x485b71
cmp ecx, 0x12345002
jne 0x485d80
jmp 0x485bfd
push 0x88
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 3
je 0x485b9b
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call fcn.004ac08e
jmp 0x485b9d
xor eax, eax
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x24]
push edx
mov dword [esi + 0x1c], eax
mov byte [eax + 0x49], bl
mov ebx, dword [esp + 0x58]
mov dword [esi + 0x58], 0x12345002
mov edx, dword [ecx + 0x18]
push edx
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x70]
or ebp, edi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x74]
or ebp, ebx
or ebp, 0x40000000
push ebp
mov dword [ecx + 0xc], edx
push 0x4ebd38
mov ecx, eax
mov byte [esp + 0x104], 0
call fcn.004ac1ce
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0x4c]
push eax
call fcn.004abec0
add esp, 4
test eax, eax
je 0x485c3d
mov eax, dword [edi]
push eax
call fcn.004538d0
add esp, 4
test al, al
je 0x485c3d
mov ecx, dword [esi + 0x1c]
push edi
add ecx, 0x80
call fcn.00457540
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x84], 0
jmp 0x485d80
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x84], 1
jmp 0x485d80
cmp eax, 0x12345003
jne 0x485c96
push 0x88
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 4
je 0x485c7d
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.00443180
jmp 0x485c7f
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
mov dword [eax + 0x80], ecx
mov dword [esp + 0x4c], 0
jmp 0x485cdd
test eax, eax
je 0x485ca2
cmp eax, edx
jne 0x485d80
cmp ecx, 0xfffff000
jne 0x485d37
push 0x80
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 5
je 0x485cd8
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004ab6ce
jmp 0x485cda
xor eax, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x24]
push ecx
mov byte [eax + 0x49], bl
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
or ebp, edi
mov edi, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
or ebp, edi
mov dword [ecx + 8], edx
or ebp, 0x40000000
push ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x1c]
push 0x4ebd38
mov byte [esp + 0x104], 0
call fcn.004ab836
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x485d4e
mov eax, dword [esi + 0x54]
test eax, eax
je 0x485d4e
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0043f4b0
cmp dword [esi + 0x58], 1
jne 0x485d64
mov eax, dword [esi + 0x54]
test eax, eax
je 0x485d64
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0043f4d0
cmp dword [esi + 0x58], 0x12345003
jne 0x485d80
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0
push 1
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x485d9a
mov edi, eax
mov ecx, edi
call fcn.00464840
push edi
call fcn.004c86d5
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x485dbf
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x485db3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x485dbf
cmp ecx, 1
jne 0x485dbf
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x485dce
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x34]
cmp eax, 0xfffff000
je 0x485de5
mov ecx, dword [esi + 0x58]
test ecx, ecx
jg 0x485e3a
mov dword [esi + 0x58], eax
jmp 0x485e3a
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x485df8
mov eax, dword [eax + 0x18]
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x485e3a
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x18]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push edx
call edi
cmp eax, 0xffffffff
je 0x485e1e
test eax, eax
jne 0x485e27
mov eax, dword [0x51948c]
test eax, eax
je 0x485e3a
cmp eax, 0xffffffff
je 0x485e3a
push 0
push eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x18]
push 0x30
push ecx
call edi
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret 0xc