Function at 0x502ee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62577c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [esp + 0xc]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x18], 0
call fcn.004fff20
lea ecx, [esp + 0x18]
push esi
push ecx
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.004ffea0
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, edi
mov byte [esp + 0x84], 1
call fcn.004ffd70
lea eax, [esp + 0x18]
push 0x6e412c
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x88], 2
call fcn.004eafd0
lea edx, [esp + 0x28]
mov byte [esp + 0x88], 3
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004eada0
push 0x6cc578
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0xa0], 4
call fcn.004eafd0
add esp, 0x24
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x502fb4
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x502fb4
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x30]
mov byte [esp + 0x7c], 6
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x502fdc
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x502fdc
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x502fe2
mov esi, dword [sym.imp.MSVCRT.dll_free]
push 0x6e40fc
lea ecx, [esp + 0x28]
call fcn.0041d7d0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x7c], 8
push ecx
lea ecx, [esp + 0x10]
call fcn.004ec040
mov edx, dword [esp + 0x24]
cmp eax, 0xffffffff
setne byte [esp + 0xb]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
mov byte [esp + 0x7c], 6
je 0x50302c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50302c
push eax
call esi
add esp, 4
mov al, byte [esp + 0xb]
test al, al
je 0x5031cc
mov eax, dword [esp + 0xc]
cmp word [eax], 0x2f
je 0x503088
lea ecx, [esp + 0xc]
lea edx, [esp + 0x28]
push ecx
push 0x2f
push edx
call fcn.004eaf20
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 9
call fcn.004ea610
mov eax, dword [esp + 0x28]
mov byte [esp + 0x7c], 6
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503088
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503088
push eax
call esi
add esp, 4
lea ecx, [esp + 0x50]
call fcn.0041c390
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 0xa
call fcn.004ec5b0
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 0xb
call fcn.0041c390
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 0xc
call fcn.0041c390
lea ecx, [esp + 0xc]
push 1
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 0xd
call fcn.004fbce0
push 0x6d1da4
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 0xe
call fcn.0041d7d0
lea edx, [esp + 0x24]
push 1
push edx
push 2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 0xf
call fcn.004fcba0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x7c], 0xe
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503128
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503128
push eax
call esi
add esp, 4
lea ecx, [esp + 0x28]
push 1
push ecx
lea ecx, [esp + 0x58]
call fcn.004fddf0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0x10
call fcn.004ea610
mov edx, dword [esp + 0x28]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x503166
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503166
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x68]
mov byte [esp + 0x7c], 0x11
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503186
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503186
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x64]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5031a2
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5031a2
push eax
call esi
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004ec7b0
mov edx, dword [esp + 0x50]
mov byte [esp + 0x7c], 6
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5031cc
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5031cc
push eax
call esi
add esp, 4
mov eax, dword [esp + 0xc]
cmp word [eax], 0x2f
jne 0x50321f
mov ecx, dword [0x65329c]
lea edx, [esp + 0x28]
push ecx
push 1
push edx
lea ecx, [esp + 0x18]
call fcn.004eb6d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0x12
call fcn.004ea610
mov eax, dword [esp + 0x28]
mov byte [esp + 0x7c], 6
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50321f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50321f
push eax
call esi
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
jne 0x503264
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
mov byte [esp + 0x7c], 0x13
je 0x503254
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
push ecx
push edx
push 0x64
mov ecx, esi
call fcn.00503700
jmp 0x503256
xor esi, esi
mov dword [edi + 8], esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov byte [esp + 0x7c], 6
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.0051ee40
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5032a4
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x503399
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503399
push eax
call esi
add esp, 4
jmp 0x503399
mov ecx, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
call fcn.00502a40
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x50332d
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [edi + 0xc]
call fcn.005010e0
mov esi, eax
test esi, esi
jne 0x5032ff
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x503393
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503393
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x503399
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov dword [esi + 8], 0
mov ecx, dword [edi + 8]
push edx
push eax
call fcn.00502630
mov edx, dword [esi]
push 1
mov ecx, esi
mov dword [esp + 0x28], eax
call dword [edx + 4]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
call fcn.00502360
test eax, eax
mov dword [esp + 0x28], eax
je 0x5032d0
mov ecx, dword [esi]
call fcn.00502470
mov esi, eax
test esi, esi
jne 0x5033ef
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [edi + 0xc]
call fcn.005010e0
test eax, eax
jne 0x5033dc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503687
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503687
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x50368d
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5033b5
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5033b5
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5033d0
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5033d0
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 0xc]
jmp 0x5036cc
mov esi, dword [eax + 8]
mov dword [eax + 8], 0
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
push esi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
mov edx, dword [esi]
mov dword [esp + 0x28], esi
call dword [edx + 0x3c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x503678
mov ecx, dword [esp + 0x20]
push 0x728fe8
call fcn.004e8b20
test al, al
je 0x503435
mov eax, esi
mov byte [eax + 0xdc], 1
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
mov byte [esp + 0x7c], 0x14
je 0x503568
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x48]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x4c], edx
call fcn.004fffb0
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 1
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x84], 0x15
call fcn.004ff880
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 3
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x88], 0x16
call fcn.004eada0
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 7
mov dword [esi], vtable.wxObject.0
mov dword [esi + 4], 0
mov ecx, dword [0x6e0ea0]
mov dword [esp + 0x7c], 0x18
mov dword [esi + 0xc], ecx
mov edx, dword [0x6e0ea0]
lea edi, [esi + 0x10]
mov dword [edi], edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x7c], 0x1a
call fcn.0041c390
lea ecx, [esi + 0x18]
mov byte [esp + 0x7c], 0x1b
call fcn.00500600
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
push ecx
lea ecx, [esi + 0xc]
mov dword [esi], vtable.wxFSFile.0
mov dword [esi + 8], eax
call fcn.0046c450
mov edx, dword [esp + 0x2c]
mov ecx, edi
push edx
call fcn.0046c450
mov ecx, edi
call fcn.004ebda0
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x14]
push eax
call fcn.0046c450
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
jmp 0x50356a
xor esi, esi
test byte [esp + 0x10], 4
je 0x50359f
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add eax, 0xfffffff4
and edi, 0xfffffffb
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x50359f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50359f
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
add esp, 4
jmp 0x5035a5
mov edi, dword [sym.imp.MSVCRT.dll_free]
test byte [esp + 0x10], 2
je 0x5035d2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
and al, 0xfd
mov dword [esp + 0x10], eax
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5035d2
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5035d2
push eax
call edi
add esp, 4
test byte [esp + 0x10], 1
je 0x5035f5
mov edx, dword [esp + 0x38]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5035f5
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5035f5
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503610
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503610
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x50362c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x50362c
push eax
call edi
add esp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x503648
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503648
push eax
call edi
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x503663
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x503663
push eax
call edi
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x24]
push 1
mov edx, dword [ecx]
call dword [edx]
jmp 0x503365
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x5036a9
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5036a9
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x5036c5
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5036c5
push eax
call esi
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5036e0
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x5036e0
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8