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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6cb136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x721bb0]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x138], eax
mov eax, dword [ebx + 0x94]
push edi
push eax
push ecx
mov ecx, dword [ebx + 0xb0]
call fcn.005c8c40
mov dword [ebx + 0x1f5f4], eax
mov eax, dword [ebx + 0x1e06c]
xor esi, esi
test eax, eax
jle 0x5e3f5a
mov edx, dword [ebx + 0x1e074]
mov eax, dword [edx + esi*4]
dec eax
cmp eax, 4
ja case.default.0x5e3ed0
jmp dword [eax*4 + 0x5e4924]
mov eax, dword [ebx + 0x1e068]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je case.default.0x5e3ed0
mov edx, dword [ecx]
push 1
call dword [edx]
jmp case.default.0x5e3ed0
mov eax, dword [ebx + 0x1e068]
mov edi, dword [eax + esi*4]
test edi, edi
je case.default.0x5e3ed0
mov ecx, edi
call fcn.00625820
jmp 0x5e3f42
mov ecx, dword [ebx + 0x1e068]
mov edi, dword [ecx + esi*4]
test edi, edi
je case.default.0x5e3ed0
mov ecx, edi
call fcn.00629f80
jmp 0x5e3f42
mov edx, dword [ebx + 0x1e068]
mov edi, dword [edx + esi*4]
test edi, edi
je case.default.0x5e3ed0
mov ecx, edi
call fcn.0062e140
jmp 0x5e3f42
mov eax, dword [ebx + 0x1e068]
mov edi, dword [eax + esi*4]
test edi, edi
je case.default.0x5e3ed0
mov ecx, edi
call fcn.006310b0
push edi
call fcn.00692701
add esp, 4
mov eax, dword [ebx + 0x1e06c]
inc esi
cmp esi, eax
jl 0x5e3ec1
mov eax, dword [ebx + 0x1f5f4]
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x1e06c], edi
mov dword [ebx + 0x1e078], edi
je 0x5e4901
cmp dword [eax + 0x10], edi
mov dword [esp + 0x18], edi
jle 0x5e4901
mov dword [esp + 0x10], edi
jmp 0x5e3f90
mov edx, dword [ebx + 0x1f5f4]
mov ecx, dword [edx + 0xc]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0x34]
dec ecx
cmp ecx, 4
ja case.default.0x5e3fa9
jmp dword [ecx*4 + 0x5e4938]
mov esi, dword [eax + 0x114]
push 0x14c
call fcn.006918d6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x14c], 0
je 0x5e3fe2
push esi
mov ecx, eax
call fcn.006314a0
mov esi, eax
jmp 0x5e3fe4
xor esi, esi
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
lea ecx, [eax + edi + 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 + 0x158], 0xffffffff
call fcn.00631b20
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi + 0x8c]
push eax
mov ecx, esi
call fcn.00631a00
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
lea eax, [edx + edi + 0x38]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.00631820
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi + 0xa4]
lea eax, [edx + edi]
mov edx, dword [eax + 0xa0]
mov eax, dword [eax + 0x9c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.006317c0
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi + 0xb0]
lea eax, [edx + edi]
mov edx, dword [eax + 0xa8]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0xac]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xb8]
mov dword [esp + 0x24], ecx
push edx
mov ecx, esi
call fcn.00631ad0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.00631800
mov ecx, esi
call fcn.00631840
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x4c]
mov edx, dword [eax + edi + 0x7c]
add eax, edi
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.00631570
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x50]
lea eax, [ecx + edi]
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.00631570
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi + 0x54]
lea eax, [edx + edi]
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.00631570
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x58]
lea eax, [ecx + edi]
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.00631570
mov ecx, esi
call fcn.00631a70
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi + 0xb4]
push 0
push 0
push 0
mov ecx, esi
mov dword [esi + 0x140], eax
call fcn.00631990
push 0
mov ecx, esi
call fcn.006317f0
push 0
push 0
push 0
mov ecx, esi
call fcn.00626450
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x90]
push edx
mov ecx, esi
call fcn.00631ae0
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x90]
push edx
mov ecx, esi
call fcn.00631af0
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edi + 0x94]
mov dword [esi + 0xb4], eax
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x4c]
mov dword [esi + 0xb4], ecx
mov ecx, esi
mov dword [esi + 0xb8], 0x40400000
call fcn.00631cf0
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x118]
test ecx, ecx
setg cl
mov byte [esi + 0x144], cl
jmp 0x5e47a9
push 0x188
call fcn.006918d6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x14c], 1
je 0x5e4278
mov ecx, eax
call fcn.00624690
mov esi, eax
jmp 0x5e427a
xor esi, esi
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x40]
mov edx, dword [eax + edi + 0x3c]
add eax, edi
mov eax, dword [eax + 0x38]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x158], 0xffffffff
call fcn.00624950
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi + 0x60]
lea eax, [edx + edi]
mov edx, dword [eax + 0x58]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x4c]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], eax
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi + 0x50]
mov dword [esi + 0x68], eax
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + edi + 0x164]
push 0x71f3b0
push edx
mov ecx, esi
call fcn.00624750
mov eax, dword [0x129a2c4]
test eax, eax
je case.default.0x5e3fa9
mov ecx, esi
call fcn.00624770
push 0x5c
push eax
call fcn.00694660
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx*4 + 0x129a2c4]
push eax
add edx, 0x141
push edx
call fcn.00693c40
add esp, 8
test eax, eax
jne 0x5e4361
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x5e4330
mov eax, dword [esp + 0x14]
mov ecx, dword [eax*4 + 0x129a2c4]
mov dword [esi + 0x6c], ecx
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x114]
push ecx
mov ecx, esi
call fcn.00625860
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x5c]
push ecx
mov ecx, esi
call fcn.006253a0
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + edi + 0x11c]
xor ecx, ecx
test edx, edx
sete cl
mov dword [esi], ecx
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x118]
test ecx, ecx
setg cl
mov byte [esi + 0x170], cl
jmp 0x5e47a9
xor eax, eax
jmp 0x5e43e0
mov cl, byte [eax + 0x71deb0]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x5e43e0
mov edx, dword [edx + 0xc]
lea eax, [edx + edi + 0x164]
mov edx, eax
jmp 0x5e4400
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e4400
lea edi, [esp + 0x38]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5e4410
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.006918d6
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x14c], 2
je 0x5e4453
mov ecx, eax
call fcn.00625fc0
mov esi, eax
jmp 0x5e4455
xor esi, esi
mov byte [esi + 0x140], 1
mov eax, dword [0x106a558]
push 1
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x158], 0xffffffff
call fcn.0062a3e0
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [eax + edi + 0x114]
test edx, edx
setg cl
mov byte [esi + 0x25], cl
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x11c]
test ecx, ecx
setg cl
mov byte [esi + 0x24], cl
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi + 0x50]
mov dword [esi + 0x134], eax
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi + 0x5c]
mov dword [esi + 0xec], eax
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edi + 0x60]
mov dword [esi + 0xf0], eax
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi + 0x64]
mov dword [esi + 0xf4], eax
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], 1
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi + 0x120]
test eax, eax
setg al
mov byte [esi + 0xf8], al
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi + 0x54]
mov dword [esi + 0xfc], eax
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edi + 0x58]
push 1
mov ecx, esi
mov dword [esi + 0x100], eax
call fcn.00626410
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x118]
test ecx, ecx
setg cl
mov byte [esi + 0x108], cl
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov edi, dword [eax + edi + 0x4c]
mov dword [esi + 0x104], edi
mov edi, dword [esp + 0x10]
jmp 0x5e47a9
push 0xbc
call fcn.006918d6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x14c], 3
je 0x5e45b5
mov ecx, eax
call fcn.0062e940
mov esi, eax
jmp 0x5e45b7
xor esi, esi
mov ecx, dword [0x106a558]
mov dword [esi + 0x90], ecx
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov dword [eax + edi + 0x118], 4
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov dword [edx + edi + 0x11c], 2
mov dword [esi + 0x7c], 6
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x118]
mov dword [esi + 0x74], edx
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi + 0x11c]
mov dword [esi + 0x78], edx
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edi + 0x120]
test eax, eax
mov dword [esp + 0x14c], 0xffffffff
mov dword [esp + 0x14], 0
jle 0x5e469e
lea ecx, [edi + 0x50]
mov dword [esp + 0x10], ecx
jmp 0x5e4650
mov ecx, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + ecx - 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
mov ecx, esi
call fcn.0062eae0
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1f5f4]
mov eax, dword [esp + 0x14]
add edx, 0xc
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi + 0x120]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5e4648
push 2
mov ecx, esi
call fcn.0062cf20
push str.pado.dds
push 0
mov ecx, esi
call fcn.0062cfc0
mov ecx, esi
call fcn.0062ecb0
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x5e46d0
mov eax, dword [esp + 0x14]
jmp 0x5e46d0
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
cmp eax, dword [edx + edi + 0x118]
mov ecx, esi
jge 0x5e46e8
push 0
jmp 0x5e46ea
push 1
push eax
call fcn.0062ee40
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 6
mov dword [esp + 0x14], eax
jl 0x5e46c4
mov ecx, esi
call fcn.0062eb50
mov eax, dword [ebx + 0x1f5f4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edi + 0x114]
test eax, eax
setg dl
mov byte [esi + 0x9c], dl
jmp 0x5e47a9
push 0x2a8
call fcn.006918d6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x14c], 4
je 0x5e478b
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [0x106a558]
fld dword [edx + edi + 0x4c]
push ecx
mov ecx, dword [edx + edi + 0x54]
add edx, edi
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.00631210
mov esi, eax
jmp 0x5e478d
xor esi, esi
push str.sp.dds
push str.water00.dds
mov ecx, esi
mov dword [esp + 0x154], 0xffffffff
call fcn.006306a0
test esi, esi
je case.default.0x5e3fa9
mov eax, dword [ebx + 0x1e070]
cmp dword [ebx + 0x1e06c], eax
jne 0x5e482c
test eax, eax
je 0x5e47c7
add eax, eax
jmp 0x5e47cc
mov eax, 0x10
mov ecx, dword [ebx + 0x1e068]
lea edx, [eax*4]
push edx
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x1e070], eax
call fcn.0069197a
mov ecx, dword [ebx + 0x1e06c]
mov dword [ebx + 0x1e068], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x5e481b
mov edi, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1e068]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x1e06c]
inc eax
cmp eax, ecx
jl 0x5e4800
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5e482c
push eax
call fcn.00693d31
add esp, 4
mov eax, dword [ebx + 0x1e06c]
mov ecx, dword [ebx + 0x1e068]
mov dword [ecx + eax*4], esi
inc dword [ebx + 0x1e06c]
mov edx, dword [ebx + 0x1f5f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + edi + 0x34]
mov eax, dword [ebx + 0x1e07c]
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x1e078], eax
jne 0x5e48c4
test eax, eax
je 0x5e4868
add eax, eax
jmp 0x5e486d
mov eax, 0x10
mov esi, dword [ebx + 0x1e074]
lea edx, [eax*4]
push edx
mov dword [ebx + 0x1e07c], eax
call fcn.0069197a
mov ecx, dword [ebx + 0x1e078]
mov dword [ebx + 0x1e074], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x5e48b7
jmp 0x5e48a0
mov ecx, dword [ebx + 0x1e074]
mov edx, dword [esi + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x1e078]
inc eax
cmp eax, ecx
jl 0x5e48a0
test esi, esi
je 0x5e48c4
push esi
call fcn.00693d31
add esp, 4
mov eax, dword [ebx + 0x1e078]
mov ecx, dword [ebx + 0x1e074]
mov edx, dword [esp + 0x10]
mov dword [ecx + eax*4], edx
inc dword [ebx + 0x1e078]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x1f5f4]
mov edx, dword [ecx + 0x10]
inc eax
add edi, 0x198
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jl 0x5e3f90
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
call fcn.00692fc7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret