Function at 0x421150
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7fc6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x4ca5d0]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4cea4c]
mov edx, dword [eax + 0xc]
xor ebx, ebx
or edi, 0xffffffff
mov ecx, 0x4cea4c
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x68]
push eax
mov eax, esi
mov dword [esp + 0xbc], ebx
call fcn.00404a60
movzx eax, byte [esi + 0x30]
mov dl, byte [esi + 0x31]
mov cl, byte [esi + 0x32]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x34]
or eax, ecx
push edx
push eax
mov dword [esp + 0xa8], 0x4b266c
mov dword [esp + 0x3c], ebx
call fcn.00482953
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa4], eax
cmp dword [esi + 0x30], edi
je 0x421301
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi]
push ecx
push edx
call fcn.00482963
cmp eax, ebx
je 0x421280
mov dword [edi + 4], eax
cmp dword [esi + 0x11c], 0xffffffff
je 0x421304
movzx eax, byte [esi + 0x11c]
fld1
mov dl, byte [esi + 0x11d]
mov cl, byte [esi + 0x11e]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
lea edx, [esp + 0x28]
push edx
movzx ecx, cl
push ebx
shl eax, 8
push ecx
or eax, ecx
mov dword [esp + 0x34], ebx
fstp dword [esp]
push eax
call fcn.00482b73
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ecx
call fcn.00482b93
cmp eax, ebx
je 0x4212f5
mov dword [edi + 4], eax
mov edx, dword [esp + 0x28]
push edx
call fcn.00482b83
jmp 0x421304
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x108]
mov ecx, dword [esi + 0x104]
cmp eax, ecx
jne 0x421318
fldz
jmp 0x421384
jae 0x421326
mov dword [esi + 0x108], ecx
mov dword [esi + 0x104], eax
mov ecx, dword [esi + 0x10c]
mov eax, dword [esi + 0x104]
cmp ecx, eax
jae 0x42133e
mov dword [esi + 0x10c], eax
jmp 0x42134e
mov edx, dword [esi + 0x108]
cmp ecx, edx
jbe 0x42134e
mov dword [esi + 0x10c], edx
mov ecx, dword [esi + 0x10c]
sub ecx, eax
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
test ecx, ecx
jge 0x421368
fadd qword [0x4b5988]
mov edx, dword [esi + 0x108]
sub edx, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
test edx, edx
jge 0x421382
fadd qword [0x4b5988]
fdivp st(1)
cmp dword [esi + 0x114], 0xffffffff
fst qword [esp + 0x44]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
je 0x4214c9
sub eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmulp st(1)
call fcn.0049ef70
add eax, dword [esp + 0x18]
mov dl, byte [esi + 0x115]
mov cl, byte [esi + 0x116]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0x114]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x14]
or eax, ecx
push edx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00482953
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
sub ecx, edx
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call fcn.00482963
cmp eax, ebx
je 0x421437
mov dword [edi + 4], eax
cmp dword [esi + 0x118], 0xffffffff
je 0x4214ba
movzx eax, byte [esi + 0x118]
fld1
mov dl, byte [esi + 0x119]
mov cl, byte [esi + 0x11a]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
lea edx, [esp + 0x28]
push edx
movzx ecx, cl
push ebx
shl eax, 8
push ecx
or eax, ecx
mov dword [esp + 0x34], ebx
fstp dword [esp]
push eax
call fcn.00482b73
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
sub eax, edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.00482b93
cmp eax, ebx
je 0x4214b0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00482b83
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00482933
jmp 0x4215a2
push 0xfffffffffffffffe
fstp st(0)
push 0xfffffffffffffffe
lea edx, [esp + 0x20]
push edx
call dword [0x4aa360]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [esp + 0x44]
call fcn.0049ef70
fld1
add eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push ebx
push ecx
fstp dword [esp]
push 0xff426190
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
call fcn.00482b73
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
sub eax, edx
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.00482b93
cmp eax, ebx
je 0x421547
mov dword [edi + 4], eax
lea edx, [esp + 0x14]
push edx
push 0xff426190
mov dword [esp + 0x1c], ebx
call fcn.00482953
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
inc esp
and al, 0x20
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x68], edx
mov edx, dword [edi]
push edx
call fcn.00482963
cmp eax, ebx
je 0x42158e
mov dword [edi + 4], eax
mov eax, dword [esp + 0x54]
push eax
call fcn.00482933
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00482b83
push 0x4cfba4
call fcn.00482883
lea edx, [esp + 0x38]
mov dword [0x4cfba8], eax
mov eax, dword [0x4cfba4]
push edx
push eax
mov dword [esp + 0x40], ebx
call fcn.00482893
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
push 1
push ecx
call fcn.00482923
cmp eax, ebx
je 0x4215dd
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x38]
push 1
push edx
call fcn.00482913
cmp eax, ebx
je 0x4215f1
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x9c]
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
lea edx, [esp + 0x14]
or eax, ecx
push edx
push eax
mov dword [esp + 0x30], 0x4b266c
mov dword [esp + 0x1c], ebx
call fcn.00482953
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xb8], 3
cmp dword [esi + 0x110], ebx
je 0x4216f9
fld qword [esp + 0x44]
fmul qword [0x4b5990]
call fcn.0049ef70
push eax
push 0x4b11bc
lea edi, [esp + 0x48]
call fcn.00412b30
mov eax, dword [esp + 0xa0]
add esp, 8
cmp eax, ebx
jne 0x421680
call fcn.00404c50
fild dword [esi + 0x18]
mov edx, dword [esi + 0x20]
sub edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x1c]
fstp dword [esp + 0x60]
fild dword [esi + 0x1c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], ecx
fstp dword [esp + 0x64]
fld dword [esp + 0x60]
fstp dword [esp + 0x50]
fld dword [esp + 0x64]
fstp dword [esp + 0x54]
fild dword [esp + 0x44]
fstp dword [esp + 0x58]
fild dword [esp + 0x28]
fstp dword [esp + 0x5c]
mov ecx, dword [esi - 0xc]
cmp eax, ebx
je 0x4216d1
mov eax, dword [eax]
jmp 0x4216d3
xor eax, eax
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [edi]
push ecx
push esi
push eax
call fcn.004828c3
cmp eax, ebx
je 0x4216fd
mov dword [edi + 4], eax
jmp 0x4216fd
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00482933
mov edx, dword [esp + 0x38]
push edx
call fcn.00482873
mov eax, dword [esp + 0x34]
push eax
call fcn.00482933
lea eax, [esi - 0x10]
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4