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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x659e39
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x14], ebx
call edx
mov esi, dword [ebx + 0x94]
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
jne 0x4ce470
xor eax, eax
jmp 0x4ce486
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebx + 0xa0]
cmp ecx, edi
jge 0x4ce49b
add eax, 0xffffffff
mov dword [ebx + 0xa0], eax
jmp 0x4ce4a5
cmp ecx, eax
jl 0x4ce4a5
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xac], edi
mov dword [ebx + 0xb0], edi
mov edi, dword [ebx + 0xa0]
call fcn.0047fd70
mov esi, eax
xor edx, edx
mov dword [esp + 0x2c], esi
mov dword [ebx + 0x98], esi
mov dword [esp + 0x18], edx
lea edi, [ebx + 0xc0]
jmp 0x4ce4da
mov edx, dword [esp + 0x18]
xor ebx, ebx
test esi, esi
je 0x4ce516
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0x4ce4eb
xor eax, eax
jmp 0x4ce4f3
mov eax, dword [esi + 0x5c]
sub eax, ecx
sar eax, 2
cmp edx, eax
jge 0x4ce516
test ecx, ecx
je 0x4ce507
mov eax, dword [esi + 0x5c]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x4ce510
call fcn.0062492b
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x58]
mov ebx, dword [eax + edx*4]
mov ecx, dword [edi - 4]
mov byte [edi + 9], 0
mov byte [edi + 0xa], 0
mov byte [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 4], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
push 0
call eax
test ebx, ebx
je 0x4ce5e5
mov cl, byte [ebx + 0xb4]
mov byte [edi + 0xa], cl
cmp byte [ebx + 0xb4], 0
je 0x4ce56d
mov edx, dword [esp + 0x14]
mov dword [edx + 0xac], 0x64
mov byte [ebx + 0xb4], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x8c]
cmp dword [eax + 0x930], 0
je 0x4ce5e5
mov esi, dword [eax + 0x930]
mov ecx, dword [esi + 0x120]
add esi, 0x11c
add ebx, 8
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], ecx
call fcn.00442430
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4ce5b0
cmp ecx, esi
je 0x4ce5b9
call fcn.0062492b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
cmp dword [eax + 4], edx
mov edx, dword [esp + 0x14]
setne al
mov byte [edi + 9], al
mov ecx, dword [ebx]
mov eax, dword [edx + 0x8c]
mov eax, dword [eax + 0x930]
push ecx
call fcn.0041b8c0
mov esi, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x18]
add eax, 1
add edi, 0x14
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x4ce4d6
mov ecx, dword [esp + 0x14]
add ecx, 0xbc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 5
mov edi, ecx
mov ebx, dword [edi + 8]
mov dword [esp + 0x44], ebx
call fcn.004cf910
test ebx, ebx
mov byte [esp + 0x23], al
je 0x4ceb3b
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x4ceb3b
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4ceb3b
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x4ce682
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4ce687
call fcn.0062492b
mov eax, dword [ebx + 0x194]
cmp dword [eax + 0x18], 0x10
jb 0x4ce698
mov esi, dword [eax + 4]
jmp 0x4ce69b
lea esi, [eax + 4]
mov eax, str.rand
mov ecx, esi
call fcn.004e8640
test al, al
jne 0x4ce9f2
push str.pick
push esi
call fcn.0062517b
add esp, 8
test eax, eax
je 0x4ce9f2
mov eax, dword [ebx + 0x194]
xor esi, esi
cmp eax, esi
je 0x4ce991
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jne 0x4ce991
mov edx, dword [ebx + 8]
push edx
lea eax, [esp + 0xe4]
push str.Trophy_d
push eax
call fcn.004e7a20
add esp, 0xc
mov edx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x26]
mov dword [esp + 0x12c], 1
mov eax, dword [edx + 0x90]
push ecx
push eax
lea ecx, [esp + 0xec]
call fcn.00466d30
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4ce94d
mov eax, dword [ebx + 0x194]
cmp eax, esi
jne 0x4ce756
mov dword [esp + 0x48], esi
jmp 0x4ce775
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
push 0x6c
call fcn.00624a6a
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov byte [esp + 0x128], 2
je 0x4ce79e
mov ecx, eax
call fcn.0052f650
mov edi, eax
mov dword [esp + 0x30], edi
jmp 0x4ce7a4
mov dword [esp + 0x30], esi
mov edi, esi
mov byte [esp + 0x128], 1
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
push 0xb1
push 0xc8
mov ecx, edi
mov dword [esp + 0x20], edi
call eax
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], edx
call fcn.00524fd0
xor cl, cl
lea eax, [esp + 0x64]
mov byte [esp + 0x128], 3
call fcn.005252d0
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4ce82a
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x58]
call fcn.005029b0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x68]
call fcn.00525260
mov edx, dword [edi + 0x24]
push 1
push edx
push esi
push 0
mov eax, ecx
call fcn.005252f0
add esi, 1
cmp esi, dword [esp + 0x1c]
jl 0x4ce7f6
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax - 2]
add eax, 0xa
add edi, 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edi
js 0x4ce924
cmp dword [ebx + 0x90], 0
jne 0x4ce8b1
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x4ce898
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4ce89d
call fcn.0062492b
mov eax, dword [ebx + 0x194]
lea edx, [edi*8]
sub edx, edi
lea edx, [eax + edx*4]
jmp 0x4ce8b4
lea edx, [ebx + 0x7c]
mov ecx, dword [esp + 0x14]
call fcn.004ce260
mov ecx, eax
test ecx, ecx
je 0x4ce917
mov eax, edi
sub eax, 0
je 0x4ce8ea
sub eax, 1
je 0x4ce8e0
sub eax, 1
jne 0x4ce917
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
push esi
push edx
jmp 0x4ce8f8
mov edx, dword [esp + 0x4c]
push esi
push edx
push 0xffffffffffffffff
jmp 0x4ce8f9
mov eax, dword [esp + 0x2c]
sub eax, esi
cdq
push esi
sub eax, edx
push 0x1e
sar eax, 1
push eax
mov ebx, dword [esp + 0x48]
mov edi, ecx
lea esi, [esp + 0x70]
call fcn.004ce3c0
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, 1
mov dword [esp + 0x1c], edi
jns 0x4ce866
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov ecx, dword [ecx + 0x90]
lea eax, [esp + 0xe0]
call fcn.00466e40
lea ecx, [esp + 0x64]
call fcn.005250b0
mov edi, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0xf8], 0x10
jb 0x4ce972
mov edx, dword [esp + 0xe4]
push edx
call fcn.0062493b
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], esi
mov byte [esp + 0xe4], 0
jmp 0x4ceb34
cmp dword [ebx + 0x90], esi
jne 0x4ce9dd
mov eax, dword [ebx + 0x194]
cmp eax, esi
je 0x4ce9c0
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4ce9c5
call fcn.0062492b
mov edx, dword [ebx + 0x194]
mov ecx, dword [esp + 0x14]
call fcn.004ce260
mov dword [esp + 0x18], eax
jmp 0x4ceb34
mov ecx, dword [esp + 0x14]
lea edx, [ebx + 0x7c]
call fcn.004ce260
mov dword [esp + 0x18], eax
jmp 0x4ceb34
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x4cea17
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [esp + 0x100]
push str.Rand_d
push ecx
call fcn.004e7a20
add esp, 0xc
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x26]
mov dword [esp + 0x12c], 0
mov ecx, dword [eax + 0x90]
push edx
push ecx
lea ecx, [esp + 0x108]
call fcn.00466d30
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x4ceb0f
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x4cea89
mov ecx, dword [ebx + 0x198]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
cmp eax, 9
ja case.0x4cea91.6
jmp dword [eax*4 + 0x4ceba0]
xor eax, eax
jmp 0x4ceac4
mov eax, 1
jmp 0x4ceac4
mov eax, 2
jmp 0x4ceac4
mov eax, 3
jmp 0x4ceac4
mov eax, 4
jmp 0x4ceac4
mov eax, 5
jmp 0x4ceac4
mov eax, 6
mov edi, dword [0x6b883c]
push eax
lea esi, [esp + 0xd4]
mov ecx, edi
call fcn.00527e80
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x8c]
push ecx
mov esi, eax
mov ecx, edi
call fcn.00550900
mov dword [esp + 0x18], eax
mov esi, eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x90]
mov edi, esi
lea eax, [esp + 0xfc]
call fcn.00466e40
mov edi, dword [esp + 0x24]
mov dword [esp + 0x128], 0xffffffff
cmp dword [esp + 0x114], 0x10
jb 0x4ceb34
mov eax, dword [esp + 0x100]
push eax
call fcn.0062493b
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], ecx
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
test ebx, ebx
setne al
push eax
call edx
cmp byte [esp + 0x23], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
sete dl
push edx
call eax
add edi, 0x14
sub dword [esp + 0x28], 1
mov dword [esp + 0x24], edi
jne 0x4ce614
mov eax, dword [esp + 0x14]
call fcn.004ce230
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret