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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff73c
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0xc0]
mov ecx, 0x24
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x18]
lea esi, [ebp - 0xc0]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 5
jne 0x5d4346
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 5
jne 0x5d4346
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
dec edx
mov eax, dword [ebp + 0x1c]
call fcn.005cf50c
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, eax
dec edx
mov eax, ebx
call fcn.005cf50c
mov ebx, eax
mov eax, ebx
sub eax, dword [ebp + 0x20]
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fadd dword [0x5d4350]
fdivr dword [0x5d4354]
fstp qword [ebp - 0x28]
wait
cmp byte [esi], 0
je 0x5d3d83
fld qword [esi + 0x10]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3d5a
push dword [esi + 0x14]
push dword [esi + 0x10]
lea eax, [ebp - 0x1c0]
mov edx, 0xff
call fcn.005d3bb8
mov eax, dword [esi + 4]
test eax, eax
jg 0x5d3d6a
cmp dword [esi + 8], 0xff
jge 0x5d3d83
push ebp
mov edx, dword [esi + 8]
push edx
lea edx, [ebp - 0x5c0]
mov ecx, eax
mov eax, 0xff
xchg edx, eax
call fcn.005d3c1c
pop ecx
cmp byte [esi + 0x20], 0
je 0x5d3dd5
fld qword [esi + 0x30]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3dad
push dword [esi + 0x34]
push dword [esi + 0x30]
lea eax, [ebp - 0x2c0]
mov edx, 0xff
call fcn.005d3bb8
cmp dword [esi + 0x24], 0
jg 0x5d3dbc
cmp dword [esi + 0x28], 0xff
jge 0x5d3dd5
push ebp
mov eax, dword [esi + 0x28]
push eax
lea eax, [ebp - 0x6c0]
mov ecx, dword [esi + 0x24]
mov edx, 0xff
call fcn.005d3c1c
pop ecx
cmp byte [esi + 0x40], 0
je 0x5d3e27
fld qword [esi + 0x50]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3dff
push dword [esi + 0x54]
push dword [esi + 0x50]
lea eax, [ebp - 0x3c0]
mov edx, 0xff
call fcn.005d3bb8
cmp dword [esi + 0x44], 0
jg 0x5d3e0e
cmp dword [esi + 0x48], 0xff
jge 0x5d3e27
push ebp
mov eax, dword [esi + 0x48]
push eax
lea eax, [ebp - 0x7c0]
mov ecx, dword [esi + 0x44]
mov edx, 0xff
call fcn.005d3c1c
pop ecx
cmp byte [esi + 0x60], 0
je 0x5d3e79
fld qword [esi + 0x70]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3e51
push dword [esi + 0x74]
push dword [esi + 0x70]
lea eax, [ebp - 0x4c0]
mov edx, 0xff
call fcn.005d3bb8
cmp dword [esi + 0x64], 0
jg 0x5d3e60
cmp dword [esi + 0x68], 0xff
jge 0x5d3e79
push ebp
mov eax, dword [esi + 0x68]
push eax
lea eax, [ebp - 0x8c0]
mov ecx, dword [esi + 0x64]
mov edx, 0xff
call fcn.005d3c1c
pop ecx
mov eax, dword [ebp + 0x20]
sub ebx, eax
jl 0x5d4346
inc ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx]
mov ebx, eax
mov eax, dword [ebp + 0x24]
lea eax, [eax + eax*2]
add dword [ebp - 0x1c], eax
add ebx, eax
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x1c]
sub eax, edi
jl 0x5d430d
inc eax
mov dword [ebp - 0x30], eax
cmp edi, dword [esi + 0x80]
jl 0x5d3eeb
cmp edi, dword [esi + 0x88]
jg 0x5d3eeb
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x84]
jl 0x5d3eeb
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x8c]
jle 0x5d42f4
mov eax, dword [ebp - 0x1c]
mov dx, word [eax]
mov word [ebx], dx
mov dl, byte [eax + 2]
mov byte [ebx + 2], dl
cmp byte [esi + 0x20], 0
je 0x5d3fba
cmp dword [esi + 0x24], 0
jg 0x5d3f13
cmp dword [esi + 0x28], 0xff
jge 0x5d3f22
xor eax, eax
mov al, byte [ebx + 2]
mov al, byte [ebp + eax - 0x6c0]
mov byte [ebx + 2], al
fld qword [esi + 0x30]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3f3f
xor eax, eax
mov al, byte [ebx + 2]
mov al, byte [ebp + eax - 0x2c0]
mov byte [ebx + 2], al
cmp dword [esi + 0x38], 0
jg 0x5d3f4e
cmp dword [esi + 0x3c], 0xff
jge 0x5d3fba
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x3c]
jg 0x5d3f87
xor eax, eax
mov al, byte [ebx + 2]
mov edx, dword [esi + 0x3c]
sub edx, dword [esi + 0x38]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x38]
call fcn.005cf524
mov byte [ebx + 2], al
jmp 0x5d3fba
xor eax, eax
mov al, byte [ebx + 2]
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x3c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x38]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx + 2], al
cmp byte [esi + 0x40], 0
je 0x5d407a
cmp dword [esi + 0x44], 0
jg 0x5d3fd3
cmp dword [esi + 0x48], 0xff
jge 0x5d3fe2
xor eax, eax
mov al, byte [ebx + 1]
mov al, byte [ebp + eax - 0x7c0]
mov byte [ebx + 1], al
fld qword [esi + 0x50]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d3fff
xor eax, eax
mov al, byte [ebx + 1]
mov al, byte [ebp + eax - 0x3c0]
mov byte [ebx + 1], al
cmp dword [esi + 0x58], 0
jg 0x5d400e
cmp dword [esi + 0x5c], 0xff
jge 0x5d407a
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x5c]
jg 0x5d4047
xor eax, eax
mov al, byte [ebx + 1]
mov edx, dword [esi + 0x5c]
sub edx, dword [esi + 0x58]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x58]
call fcn.005cf524
mov byte [ebx + 1], al
jmp 0x5d407a
xor eax, eax
mov al, byte [ebx + 1]
mov edx, dword [esi + 0x58]
sub edx, dword [esi + 0x5c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x58]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx + 1], al
cmp byte [esi + 0x60], 0
je 0x5d4132
cmp dword [esi + 0x64], 0
jg 0x5d4093
cmp dword [esi + 0x68], 0xff
jge 0x5d40a0
xor eax, eax
mov al, byte [ebx]
mov al, byte [ebp + eax - 0x8c0]
mov byte [ebx], al
fld qword [esi + 0x70]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d40bb
xor eax, eax
mov al, byte [ebx]
mov al, byte [ebp + eax - 0x4c0]
mov byte [ebx], al
cmp dword [esi + 0x78], 0
jg 0x5d40ca
cmp dword [esi + 0x7c], 0xff
jge 0x5d4132
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
jg 0x5d4101
xor eax, eax
mov al, byte [ebx]
mov edx, dword [esi + 0x7c]
sub edx, dword [esi + 0x78]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x78]
call fcn.005cf524
mov byte [ebx], al
jmp 0x5d4132
xor eax, eax
mov al, byte [ebx]
mov edx, dword [esi + 0x78]
sub edx, dword [esi + 0x7c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x78]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx], al
cmp byte [esi], 0
je 0x5d42f4
cmp dword [esi + 4], 0
jg 0x5d414a
cmp dword [esi + 8], 0xff
jge 0x5d4175
xor eax, eax
mov al, byte [ebx + 2]
mov al, byte [ebp + eax - 0x5c0]
mov byte [ebx + 2], al
xor eax, eax
mov al, byte [ebx + 1]
mov al, byte [ebp + eax - 0x5c0]
mov byte [ebx + 1], al
xor eax, eax
mov al, byte [ebx]
mov al, byte [ebp + eax - 0x5c0]
mov byte [ebx], al
fld qword [esi + 0x10]
fcomp dword [0x5d4358]
fnstsw ax
sahf
je 0x5d41ae
xor eax, eax
mov al, byte [ebx + 2]
mov al, byte [ebp + eax - 0x1c0]
mov byte [ebx + 2], al
xor eax, eax
mov al, byte [ebx + 1]
mov al, byte [ebp + eax - 0x1c0]
mov byte [ebx + 1], al
xor eax, eax
mov al, byte [ebx]
mov al, byte [ebp + eax - 0x1c0]
mov byte [ebx], al
cmp dword [esi + 0x18], 0
jg 0x5d41c1
cmp dword [esi + 0x1c], 0xff
jge 0x5d42f4
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jg 0x5d425d
xor eax, eax
mov al, byte [ebx + 2]
mov edx, dword [esi + 0x1c]
sub edx, dword [esi + 0x18]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x18]
call fcn.005cf524
mov byte [ebx + 2], al
xor eax, eax
mov al, byte [ebx + 1]
mov edx, dword [esi + 0x1c]
sub edx, dword [esi + 0x18]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x18]
call fcn.005cf524
mov byte [ebx + 1], al
xor eax, eax
mov al, byte [ebx]
mov edx, dword [esi + 0x1c]
sub edx, dword [esi + 0x18]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
add eax, dword [esi + 0x18]
call fcn.005cf524
mov byte [ebx], al
jmp 0x5d42f4
xor eax, eax
mov al, byte [ebx + 2]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x1c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x18]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx + 2], al
xor eax, eax
mov al, byte [ebx + 1]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x1c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x18]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx + 1], al
xor eax, eax
mov al, byte [ebx]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x1c]
imul edx
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fdiv dword [0x5d435c]
call fcn.00402ffc
push eax
mov eax, dword [esi + 0x18]
pop edx
sub eax, edx
call fcn.005cf524
mov byte [ebx], al
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x5d4346
add dword [ebp - 0x1c], 3
add ebx, 3
inc edi
dec dword [ebp - 0x30]
jne 0x5d3ec1
cmp word [ebp + 0x12], 0
je 0x5d433a
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0x20]
inc eax
mov dword [ebp - 0x8c4], eax
fild dword [ebp - 0x8c4]
fmul qword [ebp - 0x28]
call fcn.00403008
mov ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
call dword [ebp + 0x10]
inc dword [ebp - 0x18]
dec dword [ebp - 0x2c]
jne 0x5d3e8b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20