Function at 0x567560
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x77bb08
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov eax, dword [esp + 0x134]
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi], eax
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x138]
mov dword [esi + 8], eax
push ebx
xor eax, eax
mov dword [esi + 0xc], eax
push 0x2e
xor ecx, ecx
mov dword [esi + 0x10], ecx
xor edx, edx
mov dword [esi + 0x14], edx
push str..CObjectEditor.cpp
xor edi, edi
mov dword [esi + 0x18], edi
mov ebp, 1
mov dword [esi + 0x3c], ebp
push 0x38
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call sub.Storm.dll_Ordinal_401
mov edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
cmp edx, ebx
mov dword [esp + 0x12c], ebx
je 0x567633
push ebx
push ebx
mov ecx, esi
call fcn.00566e80
movsx ecx, ax
mov eax, dword [esi + 4]
push ecx
push eax
mov ecx, edx
call fcn.00414830
jmp 0x567635
xor eax, eax
mov dword [esp + 0x12c], 0xffffffff
mov dword [esi + 0x1c], eax
xor edi, edi
cmp edi, 2
jl 0x56765c
cmp edi, 6
jg 0x56765c
call fcn.004bcc50
cmp eax, ebx
je 0x5676dc
push 0x104
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.00566d00
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.004148b0
cmp edi, 6
mov byte [esp + 0x1c], bl
ja case.default.0x567684
jmp dword [edi*4 + 0x567908]
mov edx, str.ToolBarIcon_OE_NewUnit
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewItem
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewDest
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewDood
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewAbil
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewBuff
jmp 0x5676ba
mov edx, str.ToolBarIcon_OE_NewUpgr
push ebx
push 0x104
lea eax, [esp + 0x24]
push eax
mov ecx, str.WorldEditArt
call fcn.004b8a70
mov edx, dword [esi + 0x1c]
push edi
lea ecx, [esp + 0x20]
call fcn.004dd0d0
add edi, ebp
cmp edi, 7
jl 0x567645
push ebp
mov ecx, esi
call fcn.00566e80
push ebx
push 0x52
push str..CObjectEditor.cpp
push 0x2ac
movsx edi, ax
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], ebp
je 0x567722
push edi
push esi
mov ecx, eax
call fcn.00625c40
jmp 0x567724
xor eax, eax
push ebx
push 0x53
push str..CObjectEditor.cpp
lea ebp, [esi + 0x20]
push 0x2ac
mov dword [ebp], eax
add edi, 0x64
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 2
je 0x567761
push edi
push esi
mov ecx, eax
call fcn.006259e0
jmp 0x567763
xor eax, eax
mov dword [esp + 0x12c], 0xffffffff
mov dword [esi + 0x24], eax
add edi, 0x64
call fcn.004bcc50
test eax, eax
je 0x5678b5
push ebx
push 0x57
push str..CObjectEditor.cpp
push 0x2ac
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 3
je 0x5677b5
push edi
push esi
mov ecx, eax
call fcn.00625770
jmp 0x5677b7
xor eax, eax
push ebx
push 0x58
push str..CObjectEditor.cpp
push 0x2ac
mov dword [esi + 0x28], eax
add edi, 0x64
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 4
je 0x5677f1
push edi
push esi
mov ecx, eax
call fcn.00625380
jmp 0x5677f3
xor eax, eax
push ebx
push 0x59
push str..CObjectEditor.cpp
push 0x2ac
mov dword [esi + 0x2c], eax
add edi, 0x64
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 5
je 0x56782d
push edi
push esi
mov ecx, eax
call fcn.00624d00
jmp 0x56782f
xor eax, eax
push ebx
push 0x5a
push str..CObjectEditor.cpp
push 0x2ac
mov dword [esi + 0x30], eax
add edi, 0x64
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 6
je 0x567869
push edi
push esi
mov ecx, eax
call fcn.00624990
jmp 0x56786b
xor eax, eax
push ebx
push 0x5b
push str..CObjectEditor.cpp
push 0x2c0
mov dword [esi + 0x34], eax
add edi, 0x64
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x12c], 7
je 0x5678a5
push edi
push esi
mov ecx, eax
call fcn.00624160
jmp 0x5678a7
xor eax, eax
mov dword [esp + 0x12c], 0xffffffff
mov dword [esi + 0x38], eax
mov edi, ebp
mov ebp, 7
lea esp, [esp]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x5678cb
call fcn.0061ccd0
add edi, 4
sub ebp, 1
jne 0x5678c0
mov ecx, dword [esi + 0x1c]
call fcn.0040ae00
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00735f58
add esp, 0x11c
ret 8