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

Disassembly:
sub esp, 0x84
push ebx
fnstcw word [esp + 4]
push ebp
mov ebp, dword [esp + 0x90]
mov eax, dword [ebp]
mov ebx, dword [ebp + 4]
fild dword [ebx + 0x280]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0x50]
fmul dword [ebx + 0xdc]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x58], eax
movzx eax, word [esp + 0x10]
or ah, 0xc
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], ecx
fldcw word [esp + 0x1c]
mov dword [esp + 0x3c], edx
fistp dword [esp + 0x14]
fldcw word [esp + 0x10]
fild dword [ebx + 0x284]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x10]
fild dword [ebx + 0x288]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xdc]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x28]
fldcw word [esp + 0x10]
fild dword [ebx + 0x28c]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp ecx, eax
fistp dword [esp + 0x1c]
fldcw word [esp + 0x10]
jge 0x3df6f4
sub ecx, eax
add edx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], eax
mov ecx, eax
mov esi, dword [esp + 0x28]
add esi, eax
add edx, ecx
cmp edx, esi
jle 0x3df70c
mov edx, dword [esp + 0x28]
sub edx, ecx
add edx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
cmp ecx, edx
jge 0x3df724
sub ecx, edx
add dword [esp + 0x34], ecx
mov dword [esp + 0x50], edx
mov ecx, edx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
add edx, eax
add esi, ecx
cmp esi, edx
jle 0x3df73e
sub eax, ecx
add eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], ecx
jle 0x3dff33
cmp dword [esp + 0x34], 0
jle 0x3dff33
cmp dword [eax + 0xa8], 2
jne 0x3df78c
or dword [ebp + 0x58], 0xffff0000
mov edx, 5
mov dword [esp + 0x28], 1
jmp 0x3df799
mov edx, 0xb
mov dword [esp + 0x28], 4
mov ecx, dword [esp + 0x48]
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], 0
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov eax, dword [ecx + 0x60]
cmp eax, dword [edi + 0x12480]
jne 0x3df7bd
cmp eax, dword [edi + 0x12484]
je 0x3df81c
mov eax, dword [ecx + 0x60]
mov dword [edi + 0x12480], eax
mov eax, dword [ecx + 0x60]
mov dword [edi + 0x12484], eax
mov eax, dword [edi + 0x12544]
test byte [eax + 0x103b0], 1
je 0x3df7e7
mov dword [esi], 0x1fff0
add esi, 4
mov dword [esi], 0x8c184
mov eax, dword [ecx + 0x60]
mov dword [esi + 4], eax
mov eax, dword [ecx + 0x60]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x12544]
add esi, 0xc
test byte [eax + 0x103b0], 1
je 0x3df81c
mov eax, dword [edi + 0x20c4c]
or ah, 0x10
shl eax, 4
mov dword [esi], eax
add esi, 4
mov dword [esi + 4], edx
mov dword [esi], 0x10c300
mov eax, dword [ecx + 0x64]
mov edx, eax
shl edx, 0x10
or edx, eax
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x58]
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 0x58]
mov dword [esi + 0x10], ecx
add esi, 0x14
cmp dword [ebp + 0x58], 0xffffffff
jne 0x3df857
cmp dword [ebp + 0x54], 0x1503
jne 0x3df857
mov eax, 3
jmp 0x3df8cc
push 0x1503
mov dword [esp + 0x20], 1
call fcn.003afce0
mov dword [esi], 0x40000
mov edx, dword [edi + 0x1245c]
mov dword [esi + 0xc], eax
mov dword [esi + 8], 0x40300
add esi, 0x10
shl edx, 0x10
xor edx, 0xbeef4301
mov dword [esi - 0xc], edx
mov dword [esi], 0x40000
mov eax, dword [edi + 0x1245c]
shl eax, 0x10
xor eax, 0xbeef4401
mov dword [esi + 4], eax
or eax, 0xffffffff
mov dword [esi + 8], 0x100310
mov dword [esi + 0xc], 0
mov ecx, dword [ebp + 0x58]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x10], ecx
add esi, 0x1c
mov dword [esi], 0x40000
mov edx, dword [edi + 0x1245c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
shl edx, 0x10
xor edx, 0xbeef6101
mov dword [esi + 4], edx
mov dword [esi + 8], 0x802fc
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 8]
add esi, 0x14
mov dword [ecx], esi
mov edx, dword [edi + 8]
cmp esi, dword [edx + 4]
jb 0x3df910
push 0
xor edx, edx
mov ecx, edi
call fcn.003bfc90
xor eax, eax
cmp dword [ebp + 0x28], eax
mov dword [esp + 0x1c], eax
jbe 0x3dff17
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
fnstcw word [esp + 0x10]
add eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x84], ecx
fild dword [esp + 0x84]
mov ecx, dword [eax + 8]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 0xc]
fmul dword [ebx + 0xdc]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x38]
fldcw word [esp + 0x10]
fild dword [esp + 0x8c]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xdc]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fild dword [esp + 0x88]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x30]
fldcw word [esp + 0x10]
fild dword [esp + 0x90]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
mov eax, dword [esp + 0x38]
sub edx, eax
fistp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x30]
test edx, edx
fldcw word [esp + 0x10]
jle 0x3dfefe
test ecx, ecx
jle 0x3dfefe
mov esi, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x20], eax
jg 0x3dfa27
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, dword [esp + 0x18]
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x3dfa3d
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
cmp esi, eax
mov dword [esp + 0x24], esi
jg 0x3dfa51
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x34]
add eax, esi
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x3dfa67
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x20]
fnstcw word [esp + 0x10]
mov eax, esi
sub eax, dword [ebp + 0x4c]
add eax, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
sub eax, dword [ebp + 0x50]
add eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
fild dword [eax + 0x110]
movzx eax, word [esp + 0x10]
or ah, 0xc
fmul dword [ebx + 0xdc]
fiadd dword [esp + 0x20]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
mov eax, dword [esp + 0x48]
fistp dword [esp + 0x5c]
fldcw word [esp + 0x10]
fild dword [eax + 0x114]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xe0]
movzx eax, word [esp + 0x10]
fiadd dword [esp + 0x24]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, esi
mov esi, dword [esp + 0x3c]
cmp esi, eax
mov dword [esp + 0x18], esi
fistp dword [esp + 0x6c]
fldcw word [esp + 0x10]
jl 0x3dfb00
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
cmp esi, eax
jge 0x3dfb12
mov eax, esi
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x20], eax
jl 0x3dfefe
test eax, eax
jl 0x3dfefe
mov eax, dword [esp + 0x40]
cmp dword [eax + 0xa8], 4
jne 0x3dfb56
lea eax, [esi + 1]
and al, 0xfe
mov dword [esp + 0x44], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
jmp 0x3dfb7a
lea eax, [esi + 3]
and al, 0xfc
sar esi, 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x64], eax
shr eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
and eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
fnstcw word [esp + 0x10]
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x24], esi
mov esi, dword [eax]
mov dword [esi], 0x40000
mov eax, dword [edi + 0x1245c]
shl eax, 0x10
xor eax, 0xbeef1901
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 8], 0x80300
fild dword [eax + 0x114]
movzx eax, word [esp + 0x10]
or ah, 0xc
fmul dword [ebx + 0xe0]
shl ecx, 0x10
and edx, 0xffff
or ecx, edx
add esi, 0x14
add esi, 8
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x30]
fldcw word [esp + 0x10]
shl eax, 0x10
mov ebp, eax
mov eax, dword [esp + 0x48]
fild dword [eax + 0x110]
fnstcw word [esp + 0x10]
fmul dword [ebx + 0xdc]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esi - 0xc], ecx
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x38]
fldcw word [esp + 0x10]
and eax, 0xffff
xor ebp, eax
mov dword [esi - 0x10], ebp
mov dword [esi - 8], 0x40000
mov ecx, dword [edi + 0x1245c]
shl ecx, 0x10
xor ecx, 0xbeef6101
mov dword [esi - 4], ecx
mov edx, dword [edi + 8]
mov dword [edx], esi
mov eax, dword [edi + 8]
cmp esi, dword [eax + 4]
jb 0x3dfc6c
push 0
xor edx, edx
mov ecx, edi
call fcn.003bfc90
mov ecx, dword [edi + 8]
mov esi, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xa8]
imul edx, dword [esp + 0x4c]
mov eax, dword [eax + 0x64]
imul eax, dword [esp + 0x80]
add edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x20]
add eax, edx
test ebp, ebp
mov dword [esp + 0x18], eax
jle 0x3dfef7
mov edx, dword [esp + 0x6c]
mov ecx, 2
sub ecx, dword [esp + 0x44]
shl edx, 0x10
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebp
jmp 0x3dfcc2
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
cmp edx, 0x700
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
jb 0x3dfdcb
mov ebp, 0x700
shl ebp, cl
mov ecx, edx
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
mov dword [esp + 0x44], eax
jmp 0x3dfd10
mov eax, dword [edi + 8]
lea ecx, [esi + 0x1c14]
cmp ecx, dword [eax + 4]
jb 0x3dfd33
push 0
mov edx, 0x705
mov ecx, edi
mov dword [eax], esi
call fcn.003bfc90
mov edx, dword [edi + 8]
mov esi, dword [edx]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
add eax, ecx
or eax, dword [esp + 0x20]
mov dword [esi], 0xc0304
mov dword [esi + 4], eax
mov eax, ebp
or eax, 0x10000
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x1c000400
mov edx, dword [0x3fa0b8]
mov eax, dword [edi + edx*4 + 0x12954]
mov ecx, dword [edi + 0x12518]
mov edx, dword [esp + 0x10]
add esi, 0x10
push eax
push ecx
push 6
push 0x1c00
push edx
add esi, 4
push esi
call fcn.003f0800
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x58]
sub dword [esp + 0x48], 0x700
add dword [esp + 0x50], ebp
add esi, 0x1c00
mov dword [eax], esi
mov edx, dword [ecx + 0xa8]
imul edx, ebp
add dword [esp + 0x28], edx
add esp, 0x18
sub ebx, 0x700
sub dword [esp + 0x44], 1
jne 0x3dfd10
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x30]
mov eax, dword [edi + 8]
shl ebp, cl
lea edx, [ebx + 5]
lea ecx, [esi + edx*4]
cmp ecx, dword [eax + 4]
jb 0x3dfdef
push 0
mov ecx, edi
mov dword [eax], esi
call fcn.003bfc90
mov edx, dword [edi + 8]
mov esi, dword [edx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx]
or edx, dword [esp + 0x20]
shl ebx, 0x12
mov dword [esi + 4], edx
mov edx, dword [esp + 0x64]
sub edx, eax
or bh, 4
mov dword [esi], 0xc0304
mov ecx, ebp
or ecx, 0x10000
mov dword [esi + 8], ecx
or edx, 0x10000
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov eax, dword [0x3fa0b8]
mov ecx, dword [edi + eax*4 + 0x12954]
mov edx, dword [edi + 0x12518]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add esi, 0x10
push ecx
push edx
add ebx, ebx
push 6
add ebx, ebx
push ebx
push eax
add esi, 4
push esi
call fcn.003f0800
add esi, ebx
mov ebx, dword [esp + 0x8c]
add esp, 0x18
test ebx, ebx
je 0x3dfed0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x3dfeae
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0xa8]
mov edx, dword [0x3fa0b8]
mov edx, dword [edi + edx*4 + 0x12954]
push edx
mov edx, dword [edi + 0x12518]
push edx
mov edx, eax
imul eax, ebp
add eax, dword [esp + 0x18]
imul edx, ecx
push 6
push edx
push eax
mov eax, dword [esp + 0x6c]
push eax
call fcn.003f0800
add esp, 0x18
test ebx, ebx
jbe 0x3dfecd
mov ecx, dword [esp + 0x58]
mov eax, esi
sub ecx, esi
mov edx, ebx
lea esp, [esp]
mov ebp, dword [ecx + eax]
mov dword [eax], ebp
add eax, 4
sub edx, 1
jne 0x3dfec0
lea esi, [esi + ebx*4]
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x40]
add dword [esp + 0x20], 0x10000
mov dword [ecx], esi
mov eax, dword [edx + 0x64]
add dword [esp + 0x18], eax
sub dword [esp + 0x14], 1
jne 0x3dfcba
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x98]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x28], 0x10
add eax, 1
cmp eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
jb 0x3df923
cmp byte [edi + 0x3d], 1
mov byte [edi + 0x3c], 0
jne 0x3dff33
mov ecx, dword [edi + 0x11cc4]
push 0
push ecx
call fcn.003c0490
mov byte [edi + 0x3d], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret