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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x629f93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov byte [esp + 0x12], 1
mov dword [esp + 0x44], vtable.wxObject.0
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], edi
call fcn.0041c390
lea ecx, [esp + 0x50]
call fcn.0041c390
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push 0x64
lea ecx, [esp + 0x64]
mov byte [esp + 0x80], 2
call fcn.00503700
mov dword [esp + 0x44], vtable.wxFileSystem.0
mov dword [esp + 0x54], edi
mov edx, dword [0x65329c]
lea ecx, [esp + 0x24]
push edx
push edi
push str.UTF_8
mov dword [esp + 0x80], 3
call fcn.004e9b90
mov eax, dword [esi + 0x30]
mov byte [esp + 0x74], 4
cmp eax, edi
jbe 0x576afa
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4]
mov ebx, dword [eax + 4]
test ebx, ebx
sete cl
test cl, cl
jne 0x57679b
test byte [esi + 0xc], 4
jne 0x576aee
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.005010e0
test eax, eax
je 0x576737
mov ecx, dword [esi + 0x34]
mov ebx, dword [eax + 0x18]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp dword [eax + 0x1c], ecx
jl 0x576737
jg 0x576730
cmp ebx, edx
jbe 0x576737
mov byte [esp + 0x13], 1
jmp 0x57673c
mov byte [esp + 0x13], 0
test eax, eax
jne 0x576786
mov edx, dword [esi + 0x34]
mov eax, dword [edx + edi*4]
mov ebx, dword [eax]
call fcn.004f0590
test eax, eax
je 0x576770
mov edx, dword [eax]
push 0
push str.Cannot_open_file__s.
mov ecx, eax
call dword [edx + 8]
push ebx
push eax
call fcn.004f4290
add esp, 8
mov byte [esp + 0x12], 0
jmp 0x57678f
mov eax, str.Cannot_open_file__s.
push ebx
push eax
call fcn.004f4290
add esp, 8
mov byte [esp + 0x12], 0
jmp 0x57678f
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x576aee
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
push eax
push str.opening_file__s
push 0x6f2138
call fcn.0045dbf0
mov ecx, dword [esi + 0x34]
add esp, 0xc
mov eax, dword [ecx + edi*4]
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.005010e0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x576a7d
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x28], eax
je 0x576a7d
mov edx, dword [esi + 0x34]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5767f9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x74], 5
je 0x576819
mov ecx, eax
call fcn.005a00c0
jmp 0x57681b
xor eax, eax
mov ecx, dword [esi + 0x34]
push 0
mov byte [esp + 0x78], 4
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x34]
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x576a79
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x2c]
push edx
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
call fcn.005288b0
push str.resource
mov ecx, eax
mov byte [esp + 0x78], 6
call fcn.004eb1b0
test eax, eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x74], 4
setne bl
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
je 0x57689c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x57689c
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test bl, bl
je 0x576900
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + edi*4]
mov ebx, dword [eax]
call fcn.004f0590
test eax, eax
je 0x5768c1
mov edx, dword [eax]
push 0
push str.Invalid_XRC_resource__s:_doesnt_have_root_node_resource.
mov ecx, eax
call dword [edx + 8]
jmp 0x5768c6
mov eax, str.Invalid_XRC_resource__s:_doesnt_have_root_node_resource.
push ebx
push eax
call fcn.004f4290
mov eax, dword [esi + 0x34]
add esp, 8
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5768f7
mov eax, ecx
test eax, eax
je 0x5768ea
mov edx, dword [eax]
push 1
call dword [edx + 4]
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4]
mov dword [eax + 4], 0
mov ebx, dword [esp + 0x14]
jmp 0x576adc
mov ecx, dword [0x65329c]
push ecx
push 0
push str.0.0.0.0
lea ecx, [esp + 0x28]
call fcn.004e9b90
mov edx, dword [0x65329c]
lea ecx, [esp + 0x18]
push edx
push 0
push 0x6eb01c
mov byte [esp + 0x80], 7
call fcn.004e9b90
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x24]
mov eax, dword [eax + edi*4]
mov byte [esp + 0x78], 8
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
push edx
mov ecx, dword [ecx + 0x10]
call fcn.0059fbb0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x57697a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x57697a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x74], 0xa
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x57699f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x57699f
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea edx, [esp + 0x3c]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
push edx
push str._i._i._i._i
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0x18
cmp eax, 4
jne 0x5769ec
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ebx
shl eax, 8
add eax, ecx
jmp 0x5769ee
xor eax, eax
cmp dword [esi + 8], 0xffffffff
jne 0x5769f7
mov dword [esi + 8], eax
cmp dword [esi + 8], eax
je 0x576a28
call fcn.004f0590
test eax, eax
je 0x576a15
mov edx, dword [eax]
push 0
push str.Resource_files_must_have_same_version_number_
mov ecx, eax
call dword [edx + 8]
jmp 0x576a1a
mov eax, str.Resource_files_must_have_same_version_number_
push eax
call fcn.004f4290
add esp, 4
mov byte [esp + 0x12], 0
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x10]
push eax
call fcn.00576b40
mov edx, dword [esi + 0x34]
mov ebx, dword [esp + 0x18]
add esp, 4
mov byte [esp + 0x74], 4
mov eax, dword [edx + edi*4]
mov ecx, dword [ebx + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x576ae1
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x576ae1
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x576ae1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
call fcn.004f0590
test eax, eax
je 0x576aa2
mov edx, dword [eax]
push 0
push str.Cannot_load_resources_from_file__s.
mov ecx, eax
call dword [edx + 8]
jmp 0x576aa7
mov eax, str.Cannot_load_resources_from_file__s.
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.004f4290
mov edx, dword [esi + 0x34]
add esp, 8
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x576adc
mov eax, ecx
test eax, eax
je 0x576acf
mov edx, dword [eax]
push 1
call dword [edx + 4]
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4]
mov dword [eax + 4], 0
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x576aee
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esi + 0x30]
inc edi
cmp edi, eax
jb 0x5766e6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x576b19
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x576b19
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], 0xffffffff
call fcn.00500af0
mov ecx, dword [esp + 0x6c]
mov al, byte [esp + 0x12]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret