Function at 0x603b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7815a5
mov eax, dword fs:[0]
push eax
sub esp, 0x77c
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x778], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x790]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + 0x18]
xor ebx, ebx
push ebx
mov dword [esp + 0x4c], eax
call fcn.0061c250
mov ecx, dword [ebp + 0x48]
call fcn.0061ca30
mov ecx, ebp
mov dword [ebp + 0x74], ebx
call fcn.006031c0
cmp eax, 0xffffffff
mov dword [esp + 0x58], eax
je 0x60403d
push ebx
mov edx, str.LevelIndent
mov ecx, str.SD_Upgrades
call fcn.004b8a40
mov edx, str.Image
mov ecx, str.SD_Upgrades
mov dword [esp + 0x34], eax
call fcn.005b00f0
mov edx, str.Image
mov ecx, str.SD_Upgrades
mov dword [esp + 0x50], eax
call fcn.005b0110
mov edx, str.Name
mov ecx, str.SD_Upgrades
mov dword [esp + 0x44], eax
call fcn.005b00f0
mov edx, str.Name
mov ecx, str.SD_Upgrades
mov dword [esp + 0x3c], eax
call fcn.005b0110
mov edx, str.Menu
mov ecx, str.SD_Upgrades
mov dword [esp + 0x4c], eax
call fcn.005b00f0
mov edx, str.Menu
mov ecx, str.SD_Upgrades
mov dword [esp + 0x60], eax
call fcn.005b0110
mov dword [esp + 0x5c], eax
call fcn.004ba9d0
mov esi, eax
mov dword [esp + 0x28], esi
call fcn.004b8600
push 1
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.004db4d0
cmp eax, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ebx
jle 0x604018
push ebx
mov ecx, esi
call fcn.004db450
mov edi, eax
push edi
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.004f84a0
cmp eax, dword [esp + 0x54]
jg 0x604007
push edi
mov ecx, esi
call fcn.004f84c0
test eax, eax
je 0x604007
push 1
push edi
mov ecx, esi
call fcn.004f8880
cmp eax, 0xb
jne 0x603c62
jmp 0x603c6c
push 0
push edi
mov ecx, esi
call fcn.004f8880
cmp eax, dword [esp + 0x58]
jne 0x604007
push edi
mov ecx, esi
call fcn.004f8460
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
jle 0x604007
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
sub eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
jmp 0x603caa
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp + 0x48]
push 0xffffffffffffffff
call fcn.0061cac0
mov edx, dword [esp + 0x1c]
push 0x400
lea ecx, [esp + 0x390]
push ecx
push edx
push edi
mov ecx, esi
mov ebx, eax
call fcn.004f87a0
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x28c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004f8820
xor edi, edi
push edi
push 0x290
push str..CUpgradesPane.cpp
push 0x34
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp eax, edi
mov dword [esp + 0x798], edi
je 0x603d21
mov edx, dword [ebp + 8]
push edi
push 0xffffffffffffffff
push edx
mov ecx, eax
call fcn.004138c0
mov edi, eax
push 0
mov ecx, edi
mov dword [esp + 0x79c], 0xffffffff
call fcn.0040ad30
push str.Image
mov edx, str.SD_Upgrades
mov ecx, edi
call fcn.005b01b0
mov eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x64]
push eax
mov edx, edi
lea ecx, [esp + 0x28c]
call fcn.004dcd60
lea ecx, [esp + 0x38c]
push ecx
mov ecx, edi
call fcn.00413480
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push edx
add eax, ecx
mov ecx, dword [ebp + 0x48]
push eax
push ebx
push edi
call fcn.0061c440
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0x104
lea edx, [esp + 0x84]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004f86b0
push 0
push 0x29d
push str..CUpgradesPane.cpp
push 0x38
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x798], 1
je 0x603dff
mov edx, dword [ebp + 8]
push 0x20000
push 0xffffffffffffffff
push edx
mov ecx, eax
call fcn.00413800
mov esi, eax
jmp 0x603e01
xor esi, esi
push 0
mov ecx, esi
mov dword [esp + 0x79c], 0xffffffff
call fcn.0040ad30
push 0
mov ecx, esi
call fcn.0040acb0
push str.Name
mov edx, str.SD_Upgrades
mov ecx, esi
call fcn.005b01b0
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.00413280
lea ecx, [esp + 0x38c]
push ecx
mov ecx, esi
call fcn.00413480
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x48]
push edx
push eax
push ebx
push esi
call fcn.0061c440
lea ecx, [ebx + 5]
push ecx
mov ecx, ebp
call fcn.00602ac0
push 0
push 0x2a9
movzx edx, ax
push str..CUpgradesPane.cpp
push 0x3c
mov dword [esp + 0x24], edx
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x18], eax
mov dword [esp + 0x7c], eax
test eax, eax
mov dword [esp + 0x798], 2
je 0x603eb4
movsx ecx, word [esp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, eax
call fcn.004139e0
mov dword [esp + 0x18], eax
jmp 0x603ebc
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
push 0
mov dword [esp + 0x79c], 0xffffffff
call fcn.0040ad30
mov ecx, dword [esp + 0x18]
push str.Menu
mov edx, str.SD_Upgrades
call fcn.005b01b0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push 0x104
lea edx, [esp + 0x188]
call fcn.00602dc0
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea eax, [esp + 0x188]
push eax
call fcn.00413a60
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x603eed
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
push 1
call eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x48]
push edx
push ebx
push eax
call fcn.0061c440
mov ecx, dword [ebp + 0x74]
lea ebx, [ebp + 0x70]
add ecx, 1
cmp ecx, dword [ebx]
jbe 0x603fba
mov eax, dword [ebx + 0xc]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x603f99
mov edx, 0xc
cmp ecx, edx
mov eax, ecx
jae 0x603f92
lea edx, [ecx - 1]
and edx, ecx
je 0x603f7d
mov eax, edx
lea edx, [eax - 1]
and edx, eax
jne 0x603f74
cmp eax, 1
jae 0x603f8c
mov dword [esp + 0x14], 1
jmp 0x603f99
mov dword [esp + 0x14], eax
jmp 0x603f99
mov dword [ebx + 0xc], edx
mov dword [esp + 0x14], edx
xor edx, edx
mov eax, ecx
div dword [esp + 0x14]
test edx, edx
je 0x603faf
mov eax, dword [esp + 0x14]
sub eax, edx
add eax, ecx
mov ecx, eax
push ecx
lea ebx, [ebp + 0x70]
mov ecx, ebx
call fcn.00602ff0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
lea edx, [ecx + ecx*4]
add ecx, 1
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [eax + 8], edi
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], eax
add ecx, 1
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jl 0x603ca6
mov ebx, dword [esp + 0x2c]
add ebx, 1
cmp ebx, dword [esp + 0x40]
mov dword [esp + 0x2c], ebx
jl 0x603c21
mov ecx, dword [ebp + 0x48]
push 0
call fcn.0061c4c0
mov ecx, ebp
call fcn.00603320
mov ecx, ebp
call fcn.006038f0
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [ebp + 0x48]
call fcn.0061c250
mov ecx, dword [esp + 0x790]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x778]
xor ecx, esp
call fcn.00735f58
add esp, 0x788
ret