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

Disassembly:
sub esp, 0x194
push ebx
mov ebx, dword [esp + 0x19c]
mov eax, dword [ebx]
mov ecx, dword [eax]
push ebp
push esi
push edi
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x75c]
mov edx, dword [eax + 0x1015c]
mov eax, dword [eax + 0x10160]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x78]
mov esi, dword [ecx + 0xac]
mov dword [esp + 0xd4], eax
mov eax, dword [ecx + 0xb0]
sar eax, 3
sar esi, 3
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0xc4], esi
fild dword [esp + 0xc4]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x50]
test eax, eax
fmul dword [esp + 0x88]
mov dword [esp + 0xe0], edx
mov edx, dword [ebx + 0x4c]
mov dword [esp + 0xa0], edx
mov edx, dword [ebx + 0x74]
fstp dword [esp + 0x6c]
fild dword [esp + 0x50]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x54]
mov dword [esp + 0x100], edi
fmul dword [esp + 0x78]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], edx
fstp dword [esp + 0x70]
jge 0x3dd5b7
neg eax
test edx, edx
mov dword [esp + 0x40], eax
jge 0x3dd5c1
neg edx
mov eax, dword [ebx + 0x34]
mov ebp, dword [edi + 0x280]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0xbc], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0xb8], eax
mov eax, dword [ebx + 0x94]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x284]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x288]
add eax, ebp
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x28c]
add eax, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x30]
cmp edx, ebp
mov dword [esp + 0xa8], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x9c], eax
jge 0x3dd67f
mov eax, ebp
fnstcw word [esp + 0x10]
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov edx, ebp
fdiv dword [esp + 0x88]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0xdc]
fldcw word [esp + 0x10]
jmp 0x3dd68a
mov dword [esp + 0xdc], 0
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
cmp ebp, eax
jge 0x3dd6d3
sub eax, ebp
fnstcw word [esp + 0x10]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
movzx eax, word [esp + 0x10]
mov ebp, dword [esp + 0x20]
or ah, 0xc
fdiv dword [esp + 0x78]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0xcc]
fldcw word [esp + 0x10]
jmp 0x3dd6de
mov dword [esp + 0xcc], 0
mov eax, dword [ecx + 0x110]
mov dword [esp + 0x18], eax
add eax, edx
mov edx, dword [ecx + 0x114]
imul eax, esi
add edx, ebp
mov ebp, dword [esp + 0x50]
imul edx, ebp
cmp dword [esp + 0xa0], 0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xb0], edx
je 0x3dd7ad
mov edi, dword [esp + 0xe0]
cdq
idiv edi
mov dword [esp + 0x60], 1
mov ebp, eax
mov eax, dword [esp + 0xb0]
imul ebp, edi
mov edi, dword [esp + 0xd4]
cdq
idiv edi
mov dword [esp + 0x8c], ebp
imul eax, edi
test byte [esp + 0xa0], 4
mov dword [esp + 0x7c], eax
je 0x3dd99c
mov edi, dword [ecx + 0x110]
mov edx, dword [ebx + 0x58]
mov ecx, dword [ecx + 0x114]
add edx, edi
imul edx, esi
mov dword [esp + 0xec], edx
mov edx, dword [ebx + 0x5c]
add edx, ecx
imul edx, dword [esp + 0x50]
mov dword [esp + 0xf4], edx
mov edx, dword [ebx + 0x60]
add edx, edi
imul edx, esi
mov dword [esp + 0x104], edx
mov edx, dword [ebx + 0x64]
add edx, ecx
imul edx, dword [esp + 0x50]
mov dword [esp + 0xfc], edx
jmp 0x3dd99c
cmp esi, 1
jne 0x3dd7d2
cmp ebp, esi
jne 0x3dd7d2
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x60], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], ebp
jmp 0x3dd99c
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x60], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], eax
call fcn.003dd4b0
add eax, eax
add eax, eax
mov dword [esp + 0x14], eax
cdq
idiv esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1ac]
add ecx, edx
imul ecx, esi
mov edi, eax
mov eax, ecx
cdq
idiv edi
mov edx, esi
imul edx, dword [esp + 0x1b4]
add edx, ecx
mov ebp, eax
imul ebp, edi
lea eax, [edi + ebp]
cmp edx, eax
mov dword [esp + 0x8c], ebp
jle 0x3dd8cc
sub eax, ecx
cdq
idiv esi
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1ac]
mov ebp, eax
mov eax, dword [esp + 0x1b8]
push eax
push ebp
push ecx
push edx
push ebx
call fcn.003dd500
mov eax, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + 0x110]
add eax, ebp
add ecx, eax
imul ecx, esi
mov dword [esp + 0x1c0], eax
mov eax, ecx
cdq
idiv edi
sub dword [esp + 0x1c8], ebp
sub dword [esp + 0x5c], ebp
sub dword [esp + 0x54], ebp
add esp, 0x14
mov ebp, eax
imul ebp, edi
lea edx, [edi + ebp]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov edx, esi
imul edx, dword [esp + 0x1b4]
add edx, ecx
cmp edx, eax
mov dword [esp + 0x8c], ebp
jg 0x3dd842
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
cdq
idiv esi
mov edi, eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x114]
add ecx, dword [esp + 0x1b0]
imul ecx, esi
imul esi, dword [esp + 0x1b8]
mov eax, ecx
cdq
idiv edi
add esi, ecx
imul eax, edi
lea edx, [edi + eax]
cmp esi, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x2c], edx
jle 0x3dd99c
mov eax, edx
sub eax, ecx
cdq
idiv dword [esp + 0x50]
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1ac]
mov esi, eax
mov eax, dword [esp + 0x1b4]
push esi
push eax
push ecx
push edx
push ebx
call fcn.003dd500
mov eax, dword [esp + 0x1c4]
sub dword [esp + 0x1cc], esi
sub dword [esp + 0x70], esi
sub dword [esp + 0x50], esi
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + 0x114]
add eax, esi
mov esi, dword [esp + 0x64]
add ecx, eax
imul ecx, esi
imul esi, dword [esp + 0x1cc]
mov dword [esp + 0x1c4], eax
mov eax, ecx
cdq
idiv edi
add esi, ecx
add esp, 0x14
imul eax, edi
lea edx, [edi + eax]
cmp esi, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x2c], edx
jg 0x3dd915
mov esi, dword [esp + 0x84]
add esi, 0x58
mov ecx, 0x22
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x128]
mov edi, dword [esp + 0xac]
imul edx, eax
mov ecx, dword [esp + 0x11c]
imul ebp, edi
mov eax, dword [esp + 0x1ac]
mov esi, dword [esp + 0x48]
add edx, ecx
add ebp, edx
mov edx, dword [esp + 0x74]
cmp eax, edx
mov dword [esp + 0x108], ecx
mov dword [esp + 0x120], 0
jge 0x3dda4e
test esi, esi
jle 0x3de8e1
fild dword [esp + 0x1b4]
mov ecx, edx
sub ecx, eax
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov dword [esp + 0x28], ecx
sub dword [esp + 0x40], ecx
or ah, 0xc
fild dword [esp + 0x28]
sub esi, ecx
mov dword [esp + 0x48], esi
fdiv dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, edx
mov dword [esp + 0x1ac], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x1b4]
fldcw word [esp + 0x10]
mov ecx, dword [esp + 0xa4]
lea edx, [esi + eax]
cmp edx, ecx
jle 0x3dda9b
fild dword [esp + 0x1b4]
sub ecx, eax
sub esi, ecx
fnstcw word [esp + 0x10]
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x40], ecx
fdiv dword [esp + 0x88]
mov dword [esp + 0x18], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x1b4]
fldcw word [esp + 0x10]
mov eax, dword [esp + 0x1b0]
mov esi, dword [esp + 0x20]
cmp eax, esi
mov edx, dword [esp + 0x5c]
jge 0x3ddb01
test edx, edx
jle 0x3de8e1
fild dword [esp + 0x1b8]
mov ecx, esi
sub ecx, eax
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov dword [esp + 0x28], ecx
sub dword [esp + 0x3c], ecx
or ah, 0xc
fild dword [esp + 0x28]
sub edx, ecx
mov dword [esp + 0x5c], edx
fdiv dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, esi
mov dword [esp + 0x1b0], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x1b8]
fldcw word [esp + 0x10]
mov ecx, dword [esp + 0x9c]
lea esi, [edx + eax]
cmp esi, ecx
jle 0x3ddb4b
fild dword [esp + 0x1b8]
sub ecx, eax
sub edx, ecx
fnstcw word [esp + 0x10]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x3c], ecx
fdiv dword [esp + 0x78]
mov dword [esp + 0x18], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x1b8]
fldcw word [esp + 0x10]
cmp dword [esp + 0x1b4], 0
jle 0x3de8e1
cmp dword [esp + 0x1b8], 0
jle 0x3de8e1
cmp edi, 2
jne 0x3ddb88
or dword [ebx + 0x84], 0xffff0000
mov edx, 5
mov dword [esp + 0x90], 1
jmp 0x3ddb98
mov edx, 0xb
mov dword [esp + 0x90], 4
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x3c], 1
mov byte [ecx + 0x3d], 0
mov eax, dword [ecx + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x124]
cmp eax, dword [ecx + 0x12480]
mov dword [esp + 0xd0], edx
jne 0x3ddbc7
cmp eax, dword [ecx + 0x12484]
je 0x3ddc1a
mov edi, dword [ecx + 0x12544]
mov dword [ecx + 0x12480], eax
mov dword [ecx + 0x12484], eax
test byte [edi + 0x103b0], 1
je 0x3ddbeb
mov dword [esi], 0x1fff0
add esi, 4
mov dword [esi], 0x8c184
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x12544]
add esi, 0xc
test byte [eax + 0x103b0], 1
je 0x3ddc1a
mov eax, dword [ecx + 0x20c4c]
or ah, 0x10
shl eax, 4
mov dword [esi], eax
add esi, 4
mov dword [esi + 4], edx
mov edx, dword [esp + 0x128]
mov eax, edx
shl eax, 0x10
or eax, edx
mov dword [esi], 0x10c300
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
or edi, 0xffffffff
add esi, 0x14
cmp dword [ebx + 0x84], edi
mov dword [esp + 0xf0], eax
jne 0x3ddc6c
cmp dword [ebx + 0x80], 0x1503
jne 0x3ddc6c
mov ebp, 3
mov dword [esp + 0xb4], ebp
jmp 0x3ddceb
mov ecx, dword [ebx + 0x80]
mov ebp, 1
push ecx
mov dword [esp + 0xb8], ebp
call fcn.003afce0
mov ecx, dword [esp + 0x20]
mov dword [esi], 0x40000
mov edx, dword [ecx + 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 [ecx + 0x1245c]
shl eax, 0x10
xor eax, 0xbeef4401
mov dword [esi + 4], eax
mov dword [esi + 8], 0x100310
mov dword [esi + 0xc], 0
mov ecx, dword [ebx + 0x84]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
add esi, 0x1c
cmp dword [esp + 0x60], 0
jne 0x3ddd21
mov eax, dword [esp + 0x90]
mov dword [esi], 0x40000
mov edx, dword [ecx + 0x1245c]
shl edx, 0x10
xor edx, 0xbeef6101
mov dword [esi + 4], edx
mov dword [esi + 8], 0x802fc
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], eax
add esi, 0x14
mov edx, dword [ecx + 8]
mov dword [edx], esi
mov eax, dword [ecx + 8]
cmp esi, dword [eax + 4]
jb 0x3ddd3b
mov ecx, dword [esp + 0x1c]
push 0
xor edx, edx
call fcn.003bfc90
mov ecx, dword [ebx]
cmp dword [ecx + 0x14], 0
jne 0x3ddd66
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 8]
test edx, edx
je 0x3ddd66
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ecx, [ecx + esi + 1]
shl ecx, 4
add ecx, eax
mov dword [esp + 0xe8], ecx
mov eax, edx
jmp 0x3ddd75
mov eax, dword [ebx + 0x10]
lea edx, [eax + 0x10]
mov eax, dword [eax]
mov dword [esp + 0xe8], edx
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x74], 0
jbe 0x3de8a6
lea esp, [esp]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
shl eax, 4
add eax, dword [esp + 0xe8]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov edx, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov eax, edx
mov esi, edi
sub eax, ecx
sub esi, ebp
test eax, eax
mov dword [esp + 0x110], ebp
jle 0x3de891
test esi, esi
jle 0x3de891
cmp dword [esp + 0xa0], 0
jne 0x3ddf0f
mov ebp, dword [esp + 0x1ac]
cmp ecx, ebp
mov edi, ecx
jg 0x3dddef
mov edi, ebp
mov edx, dword [esp + 0x1b0]
cmp dword [esp + 0x110], edx
jle 0x3dde06
mov edx, dword [esp + 0x110]
add eax, ecx
mov ecx, dword [esp + 0x1b4]
add ecx, ebp
cmp eax, ecx
jge 0x3dde17
mov ecx, eax
mov eax, dword [esp + 0x110]
mov ebp, dword [esp + 0x1b0]
add eax, esi
mov esi, dword [esp + 0x1b8]
sub ecx, edi
add esi, ebp
cmp eax, esi
mov dword [esp + 0x20], ecx
jl 0x3dde3c
mov eax, esi
sub eax, edx
fnstcw word [esp + 0x10]
mov dword [esp + 0x58], eax
mov eax, edi
sub eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x10]
fild dword [esp + 0x4c]
or ah, 0xc
fmul dword [esp + 0x6c]
fiadd dword [esp + 0xd8]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, edx
fldcw word [esp + 0x10]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fnstcw word [esp + 0x10]
fmul dword [esp + 0x70]
movzx eax, word [esp + 0x10]
or ah, 0xc
fiadd dword [esp + 0xb0]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x54]
mov ebp, dword [esp + 0x54]
fldcw word [esp + 0x10]
fild dword [esp + 0x20]
fnstcw word [esp + 0x10]
fmul dword [esp + 0x6c]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x34]
fldcw word [esp + 0x10]
fild dword [esp + 0x58]
fnstcw word [esp + 0x10]
fmul dword [esp + 0x70]
movzx eax, word [esp + 0x10]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x24]
mov edi, dword [esp + 0x24]
fldcw word [esp + 0x10]
jmp 0x3de251
mov eax, dword [esp + 0x1b4]
fld dword [esp + 0x6c]
fcomp dword [0x41bc54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1b8]
fld dword [esp + 0x6c]
mov dword [esp + 0x58], eax
fnstsw ax
test ah, 5
jp 0x3ddf3c
fchs
mov eax, dword [esp + 0x1ac]
fnstcw word [esp + 0x10]
sub eax, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x10]
or ah, 0xc
fst dword [esp + 0x38]
fmul st(1)
fiadd dword [esp + 0xd8]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x44]
fstp st(0)
fldcw word [esp + 0x10]
fld dword [esp + 0x70]
fcomp dword [0x41bc54]
fld dword [esp + 0x70]
fnstsw ax
test ah, 5
jp 0x3ddf98
fchs
mov eax, dword [esp + 0x1b0]
fnstcw word [esp + 0x10]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x10]
or ah, 0xc
fst dword [esp + 0x68]
fmul st(1)
fiadd dword [esp + 0xb0]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x54]
fstp st(0)
fldcw word [esp + 0x10]
fld dword [esp + 0x38]
fmul dword [esp + 0x88]
fnstcw word [esp + 0x10]
fiadd dword [esp + 0xa8]
movzx eax, word [esp + 0x10]
or ah, 0xc
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x30]
mov esi, dword [esp + 0x30]
fldcw word [esp + 0x10]
jge 0x3de01a
sub esi, dword [esp + 0x40]
mov eax, dword [esp + 0x40]
add eax, esi
cmp edx, eax
jge 0x3de026
mov eax, edx
cmp ecx, esi
jle 0x3de02c
mov esi, ecx
mov edx, dword [esp + 0xc4]
fld dword [esp + 0x68]
mov ebp, dword [esp + 0x84]
fmul dword [esp + 0x78]
mov ecx, dword [ebp + 0x110]
fnstcw word [esp + 0x10]
fiadd dword [esp + 0x80]
sub eax, esi
add ecx, esi
imul eax, edx
imul ecx, edx
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x10]
or ah, 0xc
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x38]
mov esi, dword [esp + 0x38]
fldcw word [esp + 0x10]
jge 0x3de08c
sub esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
cmp edi, eax
jge 0x3de099
mov eax, edi
mov edx, dword [esp + 0x110]
cmp edx, esi
jle 0x3de0a6
mov esi, edx
mov edx, dword [esp + 0x50]
mov ebp, dword [ebp + 0x114]
sub eax, esi
imul eax, edx
add ebp, esi
mov edi, eax
imul ebp, edx
test byte [esp + 0xa0], 4
mov dword [esp + 0x24], edi
je 0x3de124
mov eax, dword [esp + 0xec]
cmp ecx, eax
jge 0x3de0e1
sub ecx, eax
add dword [esp + 0x34], ecx
mov ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0xf4]
cmp ebp, eax
jge 0x3de0f6
sub ebp, eax
add edi, ebp
mov dword [esp + 0x24], edi
mov ebp, eax
mov eax, dword [esp + 0x34]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x104]
cmp edx, eax
jle 0x3de10e
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xfc]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x3de124
mov edi, eax
sub edi, ebp
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x5c]
or eax, dword [esp + 0x48]
jge 0x3de24d
mov eax, dword [esp + 0x44]
cmp eax, ecx
jge 0x3de13c
mov ecx, eax
mov esi, dword [esp + 0xe0]
mov eax, ecx
cdq
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x54]
imul ecx, esi
cmp eax, ebp
mov dword [esp + 0x8c], ecx
jl 0x3de15e
mov eax, ebp
mov esi, dword [esp + 0xd4]
cdq
idiv esi
mov edx, ecx
imul edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x120], 0
imul eax, esi
mov esi, dword [esp + 0x128]
imul esi, eax
add esi, dword [esp + 0x108]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax]
add edx, esi
mov esi, dword [esp + 0x124]
and edx, 0xffffffc0
cmp esi, dword [ecx + 0x12480]
jne 0x3de1ba
cmp esi, dword [ecx + 0x12484]
je 0x3de214
mov edi, dword [ecx + 0x12544]
mov dword [ecx + 0x12480], esi
mov dword [ecx + 0x12484], esi
test byte [edi + 0x103b0], 1
je 0x3de1de
mov dword [eax], 0x1fff0
add eax, 4
mov edi, dword [esp + 0x24]
mov dword [eax], 0x8c184
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x12544]
add eax, 0xc
test byte [esi + 0x103b0], 1
je 0x3de214
mov esi, dword [ecx + 0x20c4c]
or esi, 0x1000
shl esi, 4
mov dword [eax], esi
add eax, 4
mov esi, dword [esp + 0xd0]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xf0]
mov dword [eax], 0x10c300
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 8]
add eax, 0x14
mov dword [edx], eax
mov edx, dword [ecx + 8]
cmp eax, dword [edx + 4]
jb 0x3de24d
push 0
xor edx, edx
call fcn.003bfc90
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], 0
jle 0x3de891
test edi, edi
jle 0x3de891
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x7c]
sub dword [esp + 0x44], edx
sub dword [esp + 0x30], edx
sub dword [esp + 0x54], eax
mov edx, dword [esp + 0x60]
sub ebp, eax
cmp dword [esp + 0xac], 4
mov esi, ecx
jne 0x3de2ad
lea eax, [ecx + 1]
and al, 0xfe
test edx, edx
mov dword [esp + 0x10], 2
mov dword [esp + 0x20], esi
mov dword [esp + 0xc8], eax
jne 0x3de2e4
sub eax, ecx
jmp 0x3de2e6
lea eax, [ecx + 3]
and al, 0xfc
sar esi, 1
test edx, edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0xc8], eax
jne 0x3de2d8
sar eax, 1
sub eax, esi
and ecx, 1
mov dword [esp + 0x68], ecx
jmp 0x3de2ee
test cl, 1
je 0x3de2e4
add esi, 1
mov dword [esp + 0x20], esi
xor eax, eax
mov dword [esp + 0x68], 0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
add eax, esi
mov dword [esp + 0xf8], eax
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x30]
mov dword [esi], 0x40000
mov ecx, dword [edi + 0x1245c]
shl ecx, 0x10
and eax, 0xffff
xor ecx, 0xbeef1901
shl ebp, 0x10
or eax, ebp
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
shl eax, 0x10
and ecx, 0xffff
or ecx, eax
mov dword [esi + 8], 0x80300
mov dword [esi + 0x10], ecx
add esi, 0x14
test edx, edx
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa4], eax
mov dword [esi], 0x40000
jne 0x3de37c
mov edx, dword [edi + 0x1245c]
shl edx, 0x10
xor edx, 0xbeef6101
mov dword [esi + 4], edx
jmp 0x3de3d9
fld dword [esp + 0x6c]
fmul dword [0x41bf94]
fadd dword [0x41c20c]
fstp dword [esp + 0x64]
fld dword [esp + 0x70]
mov eax, dword [esp + 0x64]
fmul dword [0x41bf94]
and eax, 0x7fffff
sub eax, str.Xqv
mov dword [esp + 0x64], eax
fadd dword [0x41c20c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
and eax, 0x7fffff
sub eax, str.Xqv
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x1245c]
shl eax, 0x10
xor eax, 0xbeef6601
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
add esi, 8
mov dword [ecx], esi
mov edx, dword [edi + 8]
cmp esi, dword [edx + 4]
jb 0x3de3f9
push 0
xor edx, edx
mov ecx, edi
call fcn.003bfc90
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x28]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0xdc]
imul eax, dword [ebx + 0x44]
mov edx, dword [esp + 0x4c]
add edx, ecx
imul edx, dword [ebx + 0x40]
mov ecx, dword [esp + 0x58]
add eax, edx
add eax, dword [ebx + 0x88]
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x3de891
mov eax, 2
sub eax, dword [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x54]
shl eax, 0x10
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
jmp 0x3de460
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x38]
xor edi, edi
cmp eax, 0x700
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x10], edx
jb 0x3de641
mov ecx, dword [esp + 0xe4]
mov eax, 0x24924925
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
sub eax, edx
shr eax, 1
mov ebp, 0x700
add eax, edx
shl ebp, cl
shr eax, 0xa
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
lea ecx, [esi + 0x1c28]
cmp ecx, dword [eax + 4]
jb 0x3de4e0
mov ecx, dword [esp + 0x1c]
push 0
mov edx, 0x70a
mov dword [eax], esi
call fcn.003bfc90
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov esi, dword [eax]
cmp dword [esp + 0x60], 0
jne 0x3de510
mov ecx, dword [esp + 0x44]
lea edx, [edi + ecx]
or edx, dword [esp + 0x4c]
mov eax, ebp
or eax, 0x10000
mov dword [esi], 0xc0304
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
add esi, 0x10
jmp 0x3de5a0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov ecx, edi
imul ecx, dword [esp + 0x64]
shl edx, 4
shl eax, 4
sar ecx, 6
add ecx, eax
add ecx, dword [ebx + 0x68]
mov eax, dword [esp + 0x28]
sar eax, 6
add eax, edx
add eax, dword [ebx + 0x6c]
mov edx, dword [esp + 0xb4]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x90]
mov dword [esi + 8], edx
mov ebx, dword [esp + 0x1a8]
mov edx, ebp
or edx, 0x10000
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x64]
shl edx, 0xa
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x2c]
shl edx, 0xa
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x9c]
or edx, dword [esp + 0x30]
shl eax, 0x10
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0xa4]
or edx, dword [esp + 0x34]
or eax, ecx
mov dword [esi], 0x2002fc
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
add esi, 0x24
mov dword [esi], 0x1c000400
add esi, 4
cmp dword [esp + 0xb8], 0
je 0x3de5e3
mov ecx, dword [0x3fa0b8]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4 + 0x12954]
mov eax, dword [eax + 0x12518]
mov ecx, dword [esp + 0x10]
push edx
push eax
push 6
push 0x1c00
push ecx
push esi
call fcn.003f0800
add esp, 0x18
jmp 0x3de600
mov edx, dword [ebx + 0x48]
mov eax, dword [esp + 0x10]
imul edx, ebp
mov ecx, dword [esp + 0xc0]
push edx
push esi
push eax
push ecx
call fcn.003ed800
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x58]
sub dword [esp + 0x24], 0x700
add esi, 0x1c00
mov dword [eax], esi
mov ecx, dword [ebx + 0x40]
imul ecx, ebp
add dword [esp + 0x10], ecx
sub edx, 0x700
add edi, ebp
sub dword [esp + 0x94], 1
mov dword [esp + 0x58], edx
jne 0x3de4b3
jmp 0x3de645
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0xe4]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
shl ebp, cl
lea ecx, [edx + 0xa]
mov dword [esp + 0x94], ecx
lea ecx, [esi + ecx*4]
cmp ecx, dword [eax + 4]
jb 0x3de68a
mov edx, dword [esp + 0x94]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
push 0
mov ecx, esi
call fcn.003bfc90
mov edx, dword [esi + 8]
mov esi, dword [edx]
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x60], 0
mov eax, dword [esp + 0x44]
jne 0x3de6c9
lea ecx, [edi + eax]
or ecx, dword [esp + 0x4c]
mov eax, ebp
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc8]
sub ecx, edi
or eax, 0x10000
or ecx, 0x10000
mov dword [esi], 0xc0304
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esi, 0x10
jmp 0x3de74c
imul edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x54]
shl ecx, 4
shl eax, 4
sar edi, 6
add edi, eax
add edi, dword [ebx + 0x68]
mov eax, dword [esp + 0x28]
sar eax, 6
add eax, ecx
add eax, dword [ebx + 0x6c]
mov ecx, dword [esp + 0xb4]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [esi + 8], ecx
mov ecx, ebp
or ecx, 0x10000
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x64]
shl ecx, 0xa
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
shl ecx, 0xa
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x9c]
or ecx, dword [esp + 0x30]
shl eax, 0x10
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0xa4]
or ecx, dword [esp + 0x34]
or eax, edi
mov dword [esi], 0x2002fc
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
add esi, 0x24
shl edx, 0x12
or dh, 4
add esi, 4
cmp dword [esp + 0xb8], 0
mov dword [esi - 4], edx
je 0x3de799
mov edx, dword [0x3fa0b8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + edx*4 + 0x12954]
mov edx, dword [eax + 0x12518]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
push ecx
push edx
push 6
lea ecx, [eax*4]
push ecx
push edi
push esi
call fcn.003f0800
add esp, 0x18
jmp 0x3de7ba
mov edx, dword [ebx + 0x48]
mov eax, dword [esp + 0x10]
imul edx, ebp
mov ecx, dword [esp + 0xc0]
push edx
push esi
push eax
push ecx
call fcn.003ed800
mov edi, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [ebx + 0x40]
mov edx, dword [esp + 0x24]
imul eax, ebp
mov ebp, dword [esp + 0x98]
add edi, eax
test ebp, ebp
lea esi, [esi + edx*4]
mov dword [esp + 0x10], edi
je 0x3de866
mov eax, dword [esp + 0x68]
test eax, eax
je 0x3de845
cmp dword [esp + 0xb8], 0
je 0x3de825
imul eax, dword [esp + 0xac]
mov edx, dword [0x3fa0b8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + edx*4 + 0x12954]
mov ecx, dword [ecx + 0x12518]
push edx
mov edx, dword [esp + 0xc0]
push ecx
push 6
push eax
push edi
push edx
call fcn.003f0800
add esp, 0x18
jmp 0x3de845
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0xbc]
imul ecx, eax
mov eax, dword [esp + 0xc0]
push ecx
push edx
push edi
push eax
call fcn.003ed800
add esp, 0x10
test ebp, ebp
jle 0x3de863
mov ecx, dword [esp + 0xbc]
mov eax, esi
sub ecx, esi
mov edx, ebp
mov edi, dword [ecx + eax]
mov dword [eax], edi
add eax, 4
sub edx, 1
jne 0x3de856
lea esi, [esi + ebp*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x4c], 0x10000
add dword [esp + 0x28], ecx
mov dword [edx], esi
mov eax, dword [ebx + 0x44]
add dword [esp + 0x38], eax
sub dword [esp + 0x14], 1
jne 0x3de460
mov eax, dword [esp + 0x74]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
jb 0x3ddd90
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x3d], 1
mov byte [esi + 0x3c], 0
jne 0x3de8c6
mov edx, dword [esi + 0x11cc4]
push 0
push edx
call fcn.003c0490
mov byte [esi + 0x3d], 0
mov eax, dword [esp + 0x100]
mov eax, dword [eax + 8]
test al, al
js 0x3de8e1
test al, 8
je 0x3de8e1
push esi
call fcn.003bcd30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret