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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x44], edx
xor edx, edx
test byte [ebx + 0x34], 8
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], esi
je 0x540ecdb6
and dword [ebp - 4], 8
mov edx, dword [ebx + 0x1d0]
mov dword [ebp + 8], edx
je 0x540ecdcb
mov esi, edx
shr edx, 8
shr esi, 0x18
movzx edx, dl
shl esi, 0x10
or esi, edx
mov edx, dword [ebp + 8]
shr edx, 0x10
mov dword [ebp - 8], esi
movzx esi, dl
movzx edx, byte [ebp + 8]
shl esi, 0x10
or esi, edx
mov dword [ebp - 0x14], esi
jmp 0x540ecdcb
or dword [ebp + 8], 0xffffffff
and dword [ebp - 4], 8
je 0x540ecdcb
mov edx, 0xff00ff
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
and dword [ebp - 0xc], 2
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 8
mov dword [ebp - 0x18], eax
and dword [ebp - 0x18], 0x100
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], eax
and dword [ebp - 0x20], 0x400
mov dword [ebp - 0x24], eax
and dword [ebp - 0x24], 0x800
mov dword [ebp - 0x28], eax
and dword [ebp - 0x28], 0x1000
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x2c], 0x2000
mov dword [ebp - 0x30], eax
and dword [ebp - 0x30], 0x4000
mov dword [ebp - 0x34], eax
and dword [ebp - 0x34], 0x8000
lea esi, [ecx + 0x10]
add edi, 0xc
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea edx, [ebx + 0x48]
lea ecx, [esi - 0x10]
lea eax, [edi - 0xc]
push edx
call fcn.5402ff08
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
je 0x540ece56
fld dword [ebx + 0x1cc]
jmp 0x540ece59
fld dword [edi - 4]
cmp dword [ebp - 0x10], ecx
fstp dword [esi - 8]
je 0x540ecef2
cmp dword [ebp - 4], ecx
je 0x540ece82
mov eax, dword [edi]
cmp eax, ecx
mov dword [ebp - 0x3c], eax
jne 0x540ece7b
mov eax, dword [ebp + 0xc]
mov dword [eax + edi], ecx
jmp 0x540ecefa
cmp eax, 0x3f800000
jne 0x540ece87
mov eax, dword [ebp + 8]
jmp 0x540ecef4
cmp eax, dword [ebp - 0x40]
jne 0x540ece91
mov eax, dword [ebp - 0x38]
jmp 0x540ecef4
fld dword [ebp - 0x3c]
fmul qword [0x540599b8]
fstp dword [ebp - 0x48]
fld dword [ebp - 0x48]
fadd qword [0x5400b818]
fstp dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
shl ecx, 0xa
sar ecx, 0xb
cmp ecx, 0xff
ja 0x540ece82
mov eax, ecx
imul eax, dword [ebp - 0x14]
mov edx, ecx
imul ecx, dword [ebp - 8]
imul edx, dword [ebp - 8]
add eax, 0x800080
shr eax, 8
sub edx, 0x7fff80
xor eax, edx
add ecx, 0x800080
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ecx
jmp 0x540ecef4
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + edi], eax
cmp dword [ebp - 0x18], 0
je 0x540ecf1b
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea eax, [ebx + 0x60]
fld dword [esi - 0x10]
mov ecx, esi
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ecf26
mov eax, dword [edi + 4]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
cmp dword [ebp - 0x1c], 0
je 0x540ecf48
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 8]
fld dword [esi - 0x10]
lea eax, [ebx + 0x78]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ecf54
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x20], 0
je 0x540ecf79
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x10]
fld dword [esi - 0x10]
lea eax, [ebx + 0x90]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ecf85
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x540ecfaa
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x18]
fld dword [esi - 0x10]
lea eax, [ebx + 0xa8]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ecfb6
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x1c], eax
cmp dword [ebp - 0x28], 0
je 0x540ecfdb
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x20]
fld dword [esi - 0x10]
lea eax, [ebx + 0xc0]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ecfe7
mov eax, dword [edi + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x24], eax
cmp dword [ebp - 0x2c], 0
je 0x540ed00c
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x28]
fld dword [esi - 0x10]
lea eax, [ebx + 0xd8]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ed018
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x2c], eax
cmp dword [ebp - 0x30], 0
je 0x540ed03d
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x30]
fld dword [esi - 0x10]
lea eax, [ebx + 0xf0]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ed049
mov eax, dword [edi + 0x34]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x540ed06e
fld dword [esi - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
lea ecx, [esi + 0x38]
fld dword [esi - 0x10]
lea eax, [ebx + 0x108]
fstp dword [esp]
call fcn.5400a53b
jmp 0x540ed07a
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x3c], eax
dec dword [ebp - 0x44]
je 0x540ed08a
add esi, 0x50
add edi, 0x50
jmp 0x540ece38
pop edi
pop esi
pop ebx
leave
ret 8