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

Disassembly:
push 0xffffffffffffffff
push 0x77f6f6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x84dea4]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov esi, ecx
push str.WESTRING_SAVING_MAPSCRIPT_ITEMDROPTABLES
xor edx, edx
xor ecx, ecx
call fcn.004bd140
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c8], edi
call fcn.0051a9d0
mov eax, dword [esp + 0x24]
cmp eax, edi
jle 0x5d1153
xor ebx, ebx
mov dword [esp + 0x14], eax
jmp 0x5d10d0
mov ecx, dword [esp + 0x28]
lea ecx, [ebx + ecx + 0x68]
call fcn.005e8e70
test eax, eax
je 0x5d113e
cmp ebp, edi
jne 0x5d10fd
push str.Map_Item_Tables
mov ecx, esi
call fcn.005b28d0
mov ecx, esi
call fcn.005b2690
mov ebp, 1
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + edx]
push eax
push str.ItemTable_06d_DropItems
lea ecx, [esp + 0xbc]
push 0x104
push ecx
call sub.Storm.dll_Ordinal_578
mov edx, dword [esp + 0x38]
add esp, 0x10
lea eax, [ebx + edx + 0x68]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.005ccf50
mov ecx, esi
call fcn.005b2690
add ebx, 0x78
sub dword [esp + 0x14], 1
jne 0x5d10d0
cmp ebp, edi
je 0x5d1153
mov ecx, esi
call fcn.005b2690
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 0x38e8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov ebp, dword [eax + 0x5c]
xor ebx, ebx
cmp ebp, edi
mov byte [esp + 0x1c4], 1
mov dword [esp + 0x18], edi
jle 0x5d1274
mov dword [esp + 0x14], edi
jmp 0x5d11d8
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 0xbc]
push edx
lea ecx, [esp + 0x34]
call fcn.00524ec0
lea ecx, [esp + 0x54]
call fcn.005e8e70
test eax, eax
je 0x5d1254
cmp dword [esp + 0x18], edi
jne 0x5d121e
push str.Unit_Item_Tables
mov ecx, esi
call fcn.005b28d0
mov ecx, esi
call fcn.005b2690
mov dword [esp + 0x18], 1
push ebx
push str.Unit_06d_DropItems
lea eax, [esp + 0xbc]
push 0x104
push eax
call sub.Storm.dll_Ordinal_578
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xb8]
push edx
mov ecx, esi
call fcn.005ccf50
mov ecx, esi
call fcn.005b2690
add dword [esp + 0x14], 0x188
add ebx, 1
cmp ebx, ebp
jl 0x5d11d4
cmp dword [esp + 0x18], edi
je 0x5d1274
mov ecx, esi
call fcn.005b2690
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 0x38e4]
mov ebp, dword [eax + 0x5c]
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jle 0x5d1340
mov dword [esp + 0x14], edi
jmp 0x5d12a4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0x14]
lea eax, [edx + ecx + 0xbc]
push eax
lea ecx, [esp + 0x34]
call fcn.00524ec0
lea ecx, [esp + 0x54]
call fcn.005e8e70
test eax, eax
je 0x5d1320
cmp dword [esp + 0x18], edi
jne 0x5d12ea
push str.Destructible_Item_Tables
mov ecx, esi
call fcn.005b28d0
mov ecx, esi
call fcn.005b2690
mov dword [esp + 0x18], 1
push ebx
push str.Doodad_06d_DropItems
lea ecx, [esp + 0xbc]
push 0x104
push ecx
call sub.Storm.dll_Ordinal_578
add esp, 0x10
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.005ccf50
mov ecx, esi
call fcn.005b2690
add dword [esp + 0x14], 0x188
add ebx, 1
cmp ebx, ebp
jl 0x5d12a0
cmp dword [esp + 0x18], edi
je 0x5d1340
mov ecx, esi
call fcn.005b2690
mov eax, dword [esp + 0xa4]
cmp eax, edi
je 0x5d1359
push edi
push 0xfffffffffffffffe
push str.._AUObjectChance__
push eax
call sub.Storm.dll_Ordinal_403
mov eax, dword [esp + 0x84]
cmp eax, edi
je 0x5d1372
push edi
push 0xfffffffffffffffe
push str.._AUAbilityInfo__
push eax
call sub.Storm.dll_Ordinal_403
mov eax, dword [esp + 0x74]
cmp eax, edi
je 0x5d1388
push edi
push 0xfffffffffffffffe
push str.._AUInvSlotInfo__
push eax
call sub.Storm.dll_Ordinal_403
lea ecx, [esp + 0x54]
call fcn.004cb930
xor ebx, ebx
cmp dword [esp + 0x24], edi
jbe 0x5d13b9
xor esi, esi
jmp 0x5d13a0
mov ecx, dword [esp + 0x28]
lea ecx, [esi + ecx + 0x68]
call fcn.004cb930
add ebx, 1
add esi, 0x78
cmp ebx, dword [esp + 0x24]
jb 0x5d13a0
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x5d13cf
push edi
push 0xfffffffffffffffe
push str.._AUWEItemTable__
push eax
call sub.Storm.dll_Ordinal_403
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.00735f58
add esp, 0x1b4
ret