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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64ab86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x94]
mov ecx, dword [ebp + 0x8c]
push eax
push ecx
mov ecx, dword [ebp + 0xb0]
call fcn.0059cb50
mov dword [ebp + 0x1f5f4], eax
mov eax, dword [ebp + 0x1e06c]
xor esi, esi
test eax, eax
jle 0x5d18ef
mov edx, dword [ebp + 0x1e074]
mov eax, dword [edx + esi*4]
dec eax
cmp eax, 4
ja case.default.0x5d1865
jmp dword [eax*4 + 0x5d2250]
mov eax, dword [ebp + 0x1e068]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je case.default.0x5d1865
mov edx, dword [ecx]
push 1
call dword [edx]
jmp case.default.0x5d1865
mov eax, dword [ebp + 0x1e068]
mov edi, dword [eax + esi*4]
test edi, edi
je case.default.0x5d1865
mov ecx, edi
call fcn.0060a4a0
jmp 0x5d18d7
mov ecx, dword [ebp + 0x1e068]
mov edi, dword [ecx + esi*4]
test edi, edi
je case.default.0x5d1865
mov ecx, edi
call fcn.005b9470
jmp 0x5d18d7
mov edx, dword [ebp + 0x1e068]
mov edi, dword [edx + esi*4]
test edi, edi
je case.default.0x5d1865
mov ecx, edi
call fcn.0060b670
jmp 0x5d18d7
mov eax, dword [ebp + 0x1e068]
mov edi, dword [eax + esi*4]
test edi, edi
je case.default.0x5d1865
mov ecx, edi
call fcn.0060e430
push edi
call fcn.00615a1d
add esp, 4
mov eax, dword [ebp + 0x1e06c]
inc esi
cmp esi, eax
jl 0x5d1856
mov eax, dword [ebp + 0x1f5f4]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x1e06c], ebx
mov dword [ebp + 0x1e078], ebx
je 0x5d2239
cmp dword [eax + 0x10], ebx
mov dword [esp + 0x14], ebx
jle 0x5d2239
jmp 0x5d1920
mov edx, dword [ebp + 0x1f5f4]
mov ecx, dword [edx + 0xc]
lea eax, [ecx + ebx]
mov ecx, dword [eax + 0x34]
dec ecx
mov edi, 4
cmp ecx, edi
ja case.default.0x5d193d
jmp dword [ecx*4 + 0x5d2264]
mov esi, dword [eax + 0x114]
push 0x14c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x13c], 0
je 0x5d1976
push esi
mov ecx, eax
call fcn.0060ee70
mov esi, eax
jmp 0x5d1978
xor esi, esi
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx + 0x38]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, esi
mov dword [esp + 0x148], 0xffffffff
call fcn.0060ef40
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ebx + 0x8c]
push ecx
mov ecx, esi
call fcn.0060ed40
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx + 0x38]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, esi
call fcn.0060eb80
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ebx + 0xa4]
mov edx, dword [eax + ebx + 0xa0]
add eax, ebx
mov eax, dword [eax + 0x9c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0060eb30
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0xb0]
lea eax, [edx + ebx]
mov edx, dword [eax + 0xa8]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0xac]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xb8]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, esi
call fcn.0060ee10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0060eb60
mov ecx, esi
call fcn.0060eba0
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ebx + 0x4c]
mov edx, dword [eax + ebx + 0x7c]
add eax, ebx
push 0
push ecx
mov ecx, dword [eax + 0x6c]
push edx
mov edx, dword [eax + 0x5c]
push ecx
push edx
mov ecx, esi
call fcn.0060e9a0
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + ebx + 0x50]
lea eax, [ecx + ebx]
mov ecx, dword [eax + 0x80]
push 1
push edx
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x60]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0060e9a0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0x54]
lea eax, [edx + ebx]
mov edx, dword [eax + 0x84]
push 2
push ecx
mov ecx, dword [eax + 0x74]
push edx
mov edx, dword [eax + 0x64]
push ecx
push edx
mov ecx, esi
call fcn.0060e9a0
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + ebx + 0x58]
lea eax, [ecx + ebx]
mov ecx, dword [eax + 0x88]
push 3
push edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x68]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0060e9a0
mov ecx, esi
call fcn.0060edb0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0xb4]
push 0
push 0
push 0
mov ecx, esi
mov dword [esi + 0x140], eax
call fcn.0060ecd0
push 0
mov ecx, esi
call fcn.004ba370
push 0
push 0
push 0
mov ecx, esi
call fcn.0060ea10
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x90]
push eax
mov ecx, esi
call fcn.0060ee20
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x90]
push eax
mov ecx, esi
call fcn.0060ee30
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x94]
mov dword [esi + 0xb4], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x4c]
mov ecx, esi
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], 0x40400000
call fcn.0060f3d0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x118]
test eax, eax
setg al
mov byte [esi + 0x144], al
jmp 0x5d20fd
push 0x188
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x13c], 1
je 0x5d1c0c
mov ecx, eax
call fcn.006091a0
mov esi, eax
jmp 0x5d1c0e
xor esi, esi
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0x40]
lea eax, [edx + ebx]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x148], 0xffffffff
call fcn.006090c0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
fld dword [edx + ebx + 0x60]
lea eax, [edx + ebx]
fld dword [eax + 0x58]
push 0x68b938
fld dword [eax + 0x54]
mov eax, dword [eax + 0x4c]
fstp dword [esi + 0x5c]
mov dword [esi + 0x58], eax
fstp dword [esi + 0x60]
fstp dword [esi + 0x64]
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x50]
mov dword [esi + 0x68], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
lea eax, [edx + ebx + 0x164]
push eax
mov ecx, esi
call fcn.00609090
mov eax, dword [0xbb2654]
test eax, eax
je case.default.0x5d193d
mov ecx, esi
call fcn.006090b0
push 0x5c
push eax
call fcn.00617880
add esp, 8
mov dword [esp + 0x10], eax
xor edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi*4 + 0xbb2654]
push ecx
add edx, 0x141
push edx
call fcn.00617070
add esp, 8
test eax, eax
jne 0x5d1cd5
inc edi
cmp edi, 3
jl 0x5d1cb0
mov eax, dword [edi*4 + 0xbb2654]
mov dword [esi + 0x6c], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x114]
push eax
mov ecx, esi
call fcn.0060a4e0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x5c]
push eax
mov ecx, esi
call fcn.006090e0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0x11c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x118]
test eax, eax
setg al
mov byte [esi + 0x170], al
jmp 0x5d20fd
xor eax, eax
jmp 0x5d1d50
mov cl, byte [eax + 0x68a438]
mov byte [esp + eax + 0x30], cl
inc eax
test cl, cl
jne 0x5d1d50
mov ecx, dword [edx + 0xc]
lea eax, [ecx + ebx + 0x164]
mov edx, eax
jmp 0x5d1d70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d1d70
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5d1d80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x244
rep movsb byte es:[edi], byte [esi]
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov edi, 2
mov dword [esp + 0x13c], edi
je 0x5d1dc4
mov ecx, eax
call fcn.005b63b0
mov esi, eax
jmp 0x5d1dc6
xor esi, esi
mov byte [esi + 0x140], 1
mov edx, dword [0xb1a128]
push 1
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x148], 0xffffffff
call fcn.005b98d0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0x114]
test ecx, ecx
setg al
mov byte [esi + 0x25], al
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x11c]
test eax, eax
setg al
mov byte [esi + 0x24], al
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x50]
mov dword [esi + 0x134], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x5c]
mov dword [esi + 0xec], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x60]
mov dword [esi + 0xf0], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x64]
mov dword [esi + 0xf4], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 1
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov edi, dword [edx + ebx + 0x120]
test edi, edi
setg al
mov byte [esi + 0xf8], al
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x54]
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x58]
push 1
mov ecx, esi
mov dword [esi + 0x100], eax
call fcn.005b57b0
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x118]
test eax, eax
setg al
mov byte [esi + 0x108], al
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + ebx + 0x4c]
mov dword [esi + 0x104], eax
jmp 0x5d20fd
push 0xbc
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x13c], 3
je 0x5d1f1b
mov ecx, eax
call fcn.0060be70
mov esi, eax
jmp 0x5d1f1d
xor esi, esi
mov ecx, dword [0xb1a128]
mov dword [esi + 0x90], ecx
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 0x118], edi
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov dword [edx + ebx + 0x11c], 2
mov dword [esi + 0x7c], 6
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + ebx + 0x118]
mov dword [esi + 0x74], edx
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + ebx + 0x11c]
mov dword [esi + 0x78], edx
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + ebx + 0x120]
test eax, eax
mov dword [esp + 0x13c], 0xffffffff
mov dword [esp + 0x10], 0
jle 0x5d2006
lea edi, [ebx + 0x50]
jmp 0x5d1fb0
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
fld dword [eax + edi - 4]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fld dword [eax + edi]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fld dword [eax + edi + 4]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0060c010
mov ecx, dword [ebp + 0x1f5f4]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + ebx + 0x120]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5d1fb0
push 2
mov ecx, esi
call fcn.0060a5a0
push str.pado.dds
push 0
mov ecx, esi
call fcn.0060a640
mov ecx, esi
call fcn.0060c1e0
xor edi, edi
jmp 0x5d2030
mov eax, dword [ebp + 0x1f5f4]
mov ecx, dword [eax + 0xc]
cmp edi, dword [ecx + ebx + 0x118]
mov ecx, esi
jge 0x5d2048
push 0
jmp 0x5d204a
push 1
push edi
call fcn.0060c370
inc edi
cmp edi, 6
jl 0x5d2030
mov ecx, esi
call fcn.0060c080
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ebx + 0x114]
test ecx, ecx
setg cl
mov byte [esi + 0x9c], cl
jmp 0x5d20fd
push 0x2a8
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x13c], edi
je 0x5d20df
mov edx, dword [ebp + 0x1f5f4]
mov ecx, dword [edx + 0xc]
fld dword [ecx + ebx + 0x4c]
lea edx, [ecx + ebx]
mov ecx, dword [0xb1a128]
push ecx
mov ecx, dword [edx + 0x54]
push ecx
mov ecx, dword [edx + 0x40]
push ecx
mov ecx, dword [edx + 0x38]
push ecx
mov ecx, dword [edx + 0x50]
push ecx
mov ecx, dword [edx + 0x118]
mov edx, dword [edx + 0x114]
sub esp, 8
fstp qword [esp]
push ecx
push edx
mov ecx, eax
call fcn.0060e590
mov esi, eax
jmp 0x5d20e1
xor esi, esi
push str.sp.dds
push 0x6660c0
mov ecx, esi
mov dword [esp + 0x144], 0xffffffff
call fcn.0060dd00
test esi, esi
je case.default.0x5d193d
mov eax, dword [ebp + 0x1e070]
cmp dword [ebp + 0x1e06c], eax
jne 0x5d2174
test eax, eax
je 0x5d211b
add eax, eax
jmp 0x5d2120
mov eax, 0x10
mov edi, dword [ebp + 0x1e068]
mov dword [ebp + 0x1e070], eax
shl eax, 2
push eax
call fcn.00614c96
mov ecx, dword [ebp + 0x1e06c]
mov dword [ebp + 0x1e068], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x5d2167
lea ebx, [ebx]
mov ecx, dword [ebp + 0x1e068]
mov edx, dword [edi + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 0x1e06c]
inc eax
cmp eax, ecx
jl 0x5d2150
test edi, edi
je 0x5d2174
push edi
call fcn.00616a81
add esp, 4
mov eax, dword [ebp + 0x1e06c]
mov ecx, dword [ebp + 0x1e068]
mov dword [ecx + eax*4], esi
inc dword [ebp + 0x1e06c]
mov edx, dword [ebp + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov edi, dword [eax + ebx + 0x34]
mov eax, dword [ebp + 0x1e07c]
cmp dword [ebp + 0x1e078], eax
jne 0x5d2204
test eax, eax
je 0x5d21ac
add eax, eax
jmp 0x5d21b1
mov eax, 0x10
mov esi, dword [ebp + 0x1e074]
lea ecx, [eax*4]
push ecx
mov dword [ebp + 0x1e07c], eax
call fcn.00614c96
mov ecx, dword [ebp + 0x1e078]
mov dword [ebp + 0x1e074], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x5d21f7
nop
mov ecx, dword [esi + eax*4]
mov edx, dword [ebp + 0x1e074]
mov dword [edx + eax*4], ecx
mov ecx, dword [ebp + 0x1e078]
inc eax
cmp eax, ecx
jl 0x5d21e0
test esi, esi
je 0x5d2204
push esi
call fcn.00616a81
add esp, 4
mov edx, dword [ebp + 0x1e078]
mov eax, dword [ebp + 0x1e074]
mov dword [eax + edx*4], edi
inc dword [ebp + 0x1e078]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1f5f4]
mov edx, dword [ecx + 0x10]
inc eax
add ebx, 0x198
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x5d1920
mov ecx, dword [esp + 0x134]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret