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

Disassembly:
sub esp, 0x23c
fild dword [0x68d5f4]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
fst dword [esp + 8]
lea eax, [ebp + 0xac]
mov dword [eax], ecx
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [esp + 8]
lea edx, [ebp + 0xd0]
mov dword [edx], eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
mov dword [edx + 4], ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
fst dword [esp + 0x10]
mov dword [edx + 8], eax
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
fst dword [esp + 8]
lea ecx, [ebp + 0xf4]
mov dword [ecx], edx
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x10]
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, dword [esp + 8]
lea eax, [ebp + 0x118]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, 0x40a00000
mov dword [ebp + 0xe4], eax
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x12c], eax
mov dword [ebp + 0x130], eax
mov dword [ebp + 0xec], eax
mov dword [ebp + 0x114], eax
mov dword [ebp + 0x134], eax
mov dword [ebp + 0x138], eax
mov eax, 0xccccddf0
mov dword [ebp + 0xb8], eax
mov dword [ebp + 0xdc], eax
mov dword [ebp + 0x100], eax
mov dword [ebp + 0x124], eax
mov dword [ebp + 0xc0], ebx
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0x108], ebx
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0x110], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0x104], ebx
mov dword [ebp + 0x128], ebx
xor eax, eax
jmp 0x5dc710
mov cl, byte [eax + 0x68a838]
mov byte [eax + 0x941728], cl
inc eax
cmp cl, bl
jne 0x5dc710
cmp byte [0xdb2374], bl
jne 0x5dcc2d
mov ecx, dword [0x688d20]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
push esi
shr ecx, 0x1f
mov eax, 0xdaa344
mov byte [0xdb2374], 1
mov dword [0xda5e04], 0
add ecx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov esi, 0x3dcccccd
push edi
jmp 0x5dc770
fild dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov edx, 0x20
lea ecx, [ecx]
mov edi, dword [esp + 0x20]
fst dword [eax - 4]
fild dword [esp + 0x20]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0xffffffff
fstp dword [eax]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
add edi, ecx
add eax, 0x400
dec edx
mov dword [esp + 0x20], edi
jne 0x5dc780
mov eax, dword [esp + 0x1c]
fstp st(0)
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add eax, 0x20
cmp eax, 0xdaa744
mov dword [esp + 0x24], eax
jl 0x5dc770
mov eax, 0xda2ff8
mov dword [esp + 0x20], ebx
xor edx, edx
lea ebx, [ebx]
mov esi, dword [esp + 0x20]
mov ecx, edx
shl ecx, 5
add ecx, esi
mov word [eax], cx
add eax, 2
add eax, 2
lea esi, [ecx + 0x20]
mov word [eax - 2], si
lea edi, [ecx + 1]
mov word [eax], di
add eax, 2
mov word [eax], di
add eax, 2
mov word [eax], si
add eax, 2
add ecx, 0x21
mov word [eax], cx
add eax, 2
inc edx
cmp edx, 0x1f
jl 0x5dc7e0
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, 0x1f
mov dword [esp + 0x20], ecx
jl 0x5dc7d8
cmp dword [0xb22214], ebx
je 0x5dcc2b
xor edi, edi
mov esi, 0xda5d08
push edi
lea edx, [esp + 0x50]
push str.water_4d_bump.dds
push edx
call fcn.0061660d
lea eax, [esp + 0x58]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5dc860
sub eax, edx
xor ecx, ecx
cmp eax, ebx
jle 0x5dc881
nop
cmp byte [esp + ecx + 0x4c], 0x20
jne 0x5dc87c
mov byte [esp + ecx + 0x4c], 0x30
inc ecx
cmp ecx, eax
jl 0x5dc870
lea eax, [esp + 0x4c]
push eax
push 0x68a838
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.0061660d
add esp, 0x10
push esi
push ebx
mov eax, dword [0x9411e4]
push ebx
push ebx
push 3
push 3
push 1
push 0x5348564e
push ebx
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x17c]
push edx
push eax
call fcn.004fc291
add esi, 4
inc edi
cmp esi, 0xda5e04
jl 0x5dc840
push 0x666308
push 0x68a838
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.0061660d
add esp, 0x10
push 0xda5e10
mov eax, dword [0x9411e4]
push ebx
push ebx
push ebx
push 3
push 3
push 1
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x178]
push edx
push eax
call fcn.004fc324
mov eax, dword [0x9411e4]
push 0xda5e14
push 1
push ebx
push 8
push 0x140
mov dword [esp + 0x3c], 0x20000000
mov dword [esp + 0x40], 0x40020000
mov dword [esp + 0x44], 0x40020001
mov dword [esp + 0x48], 0x40020002
mov dword [esp + 0x4c], 0x40010003
mov dword [esp + 0x50], 0x40020005
mov dword [esp + 0x54], 0x40020006
mov dword [esp + 0x58], 0x40020004
mov dword [esp + 0x5c], 0xffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
mov eax, dword [0xda5e14]
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push eax
call dword [edx + 0x2c]
fild dword [0x68d5f4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
fst dword [esp + 0x10]
mov dword [edx], eax
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add ecx, 0x50
mov dword [ecx], edx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
fst dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
add eax, 0xa0
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
fst dword [esp + 0x10]
mov dword [eax + 8], ecx
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add edx, 0xf0
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xc
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov dword [esp + 0x14], 0x3f800000
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x1c]
add eax, 0x5c
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x14], 0x3f800000
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x1c]
add edx, 0xac
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov dword [esp + 0x14], 0x3f800000
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xfc
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov dword [esp + 0x14], 0x3f800000
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x24], ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x28], ebx
mov edx, dword [esp + 0x1c]
mov eax, 0x422c0000
mov dword [edx + 0x74], eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x78], ebx
mov edx, dword [esp + 0x1c]
mov dword [edx + 0xc4], ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xc8], eax
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x114], eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x118], eax
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.005dbb00
mov eax, dword [0xda5e14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, 0x68d5a0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5dcb91
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
sub eax, esi
push eax
push 0x68d5a0
call fcn.004f34fc
mov eax, dword [esp + 0x20]
mov esi, dword [0x9411e4]
mov ecx, dword [eax]
mov edi, dword [esi]
push 0x68d2d4
push eax
call dword [ecx + 0xc]
push eax
push esi
call dword [edi + 0x15c]
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x68d2d8
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5dcbe0
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
sub eax, esi
push eax
push 0x68d2d8
call fcn.004f34fc
mov eax, dword [esp + 0x20]
mov esi, dword [0x9411e4]
mov edx, dword [eax]
mov edi, dword [esi]
push ebx
push 0x68d2d0
push eax
call dword [edx + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [edi + 0x12c]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret