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

Disassembly:
sub esp, 0x540
mov eax, dword [0x84dea4]
xor eax, esp
mov dword [esp + 0x53c], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x65236e
push edi
push ebx
mov dword [esi + 0x88], ebx
call fcn.0040ab90
mov ecx, dword [esi]
call fcn.0040b900
cmp dword [esi + 0x5c], ebx
lea ecx, [esi + 0x78]
je 0x65231e
mov edi, dword [esi + 0x50]
push edi
mov dword [esp + 0x20], edi
call fcn.00651fd0
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x65234a
xor edi, edi
push ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
jmp 0x652106
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esi]
push 0x79923f
push 0xffff
push ebx
call fcn.00416400
push ebx
mov ebp, eax
push 0x104
lea eax, [esp + 0x34c]
push eax
mov edx, str.Icon_ItemSet
mov ecx, str.WorldEditArt
call fcn.004b8a70
mov edx, dword [esi]
push ebx
push ebp
lea ecx, [esp + 0x34c]
call fcn.004dce50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x80]
shl eax, 0x10
mov dword [esp + 0x24], eax
or eax, 0xffff
push eax
mov dword [edi + ecx], ebp
mov ecx, dword [esi]
push ebp
call fcn.00416480
mov edx, dword [esi + 0x54]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x18], ebx
mov ebx, dword [eax + edx + 4]
cmp ebx, dword [edi + ecx + 8]
lea edi, [edi + ecx + 4]
mov dword [esp + 0x28], ebx
jbe 0x6521c1
cmp ebx, dword [edi]
jbe 0x6521c1
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x6521a1
push ebx
mov ecx, edi
call fcn.0040e3b0
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov dword [esp + 0x2c], ebx
test edx, edx
je 0x6521b5
sub ecx, edx
add ecx, ebx
jmp 0x6521b9
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0040e410
mov dword [edi + 4], ebx
xor edi, edi
test ebx, ebx
jle 0x65226d
mov edi, edi
mov edx, dword [esi + 0x54]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edx + 8]
mov ecx, dword [eax + edi*8]
mov ebx, dword [eax + edi*8 + 4]
add dword [esp + 0x18], ebx
push 0x104
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x38], ecx
push ecx
mov ecx, esi
call fcn.006515c0
lea eax, [esp + 0x13c]
push eax
push ebx
push str._3d______s
lea ecx, [esp + 0x44]
push 0x104
push ecx
call sub.Storm.dll_Ordinal_578
mov ecx, dword [esi]
add esp, 0x14
lea edx, [esp + 0x38]
push edx
push 0xffff
push ebp
call fcn.00416400
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esi + 0x80]
mov edx, dword [ecx + eax + 0xc]
mov eax, dword [esp + 0x24]
or eax, edi
push eax
mov dword [edx + edi*4], ebx
mov ecx, dword [esi]
push ebx
call fcn.00416480
mov ecx, dword [esp + 0x30]
push ecx
push ebx
mov ecx, esi
call fcn.00651630
add edi, 1
cmp edi, dword [esp + 0x28]
jl 0x6521d0
push 0
push 0x104
lea edx, [esp + 0x450]
mov ecx, str.WESTRING_UPROPS_DROPTABLE_ITEMSET
call fcn.004da2f0
push 0
push 0x104
lea edx, [esp + 0x248]
mov ecx, str.WESTRING_UPROPS_DROPTABLE_TOTCHANCE
call fcn.004da2f0
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x244]
push eax
add edi, 1
push edi
lea ecx, [esp + 0x454]
push ecx
push str._s__d___s:__d___
lea edx, [esp + 0x4c]
push 0x104
push edx
call sub.Storm.dll_Ordinal_578
mov ecx, dword [esi]
add esp, 0x1c
push 1
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.00413d10
mov ecx, dword [esi]
push 1
push ebp
call fcn.0040bab0
add dword [esp + 0x10], 0x10
add dword [esp + 0x14], 0x14
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jl 0x652100
cmp dword [esp + 0x20], 0
pop ebp
jle 0x65234a
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx]
mov ecx, dword [esi]
push 1
push edx
call fcn.00415880
jmp 0x65234a
push ebx
call fcn.00651fd0
push ebx
push 0x104
lea edx, [esp + 0x3c]
mov ecx, str.WESTRING_UPROPS_DROPTABLE_MULTIPLE
call fcn.004da2f0
mov ecx, dword [esi]
lea eax, [esp + 0x34]
push eax
push 0xffff
push ebx
call fcn.00416400
mov ecx, dword [esi]
push 1
call fcn.0040ab90
mov ecx, dword [esi]
push 1
call fcn.0040abd0
mov ecx, esi
call fcn.006518e0
mov dword [esi + 0x88], 1
pop edi
mov ecx, dword [esp + 0x544]
pop esi
pop ebx
xor ecx, esp
call fcn.00735f58
add esp, 0x540
ret