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

Disassembly:
sub esp, 0x308
mov edx, dword [esp + 0x310]
push ebx
push ebp
push esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], ecx
push edi
mov ecx, dword [eax + 0xc]
mov edi, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x31c]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x330]
mov dword [ecx + 0x58], 0
mov ecx, dword [esp + 0x324]
fld qword [ecx]
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
fld qword [ecx + 8]
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
fld qword [ecx + 0x10]
fistp qword [esp + 0x40]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], esi
fld qword [ecx]
fcomp qword [0x5333b0]
fnstsw ax
test ah, 1
je 0x4cb0ea
fild dword [esp + 0x30]
fcomp qword [ecx]
fnstsw ax
test ah, 0x40
jne 0x4cb0ea
dec dword [esp + 0x30]
fld qword [ecx + 8]
fcomp qword [0x5333b0]
fnstsw ax
test ah, 1
je 0x4cb10c
fild dword [esp + 0x34]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x40
jne 0x4cb10c
dec dword [esp + 0x34]
fld qword [ecx + 0x10]
fcomp qword [0x5333b0]
fnstsw ax
test ah, 1
je 0x4cb12b
fild dword [esp + 0x38]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 0x40
jne 0x4cb12b
dec esi
mov eax, dword [esp + 0x328]
test eax, eax
je 0x4cb13e
lea ecx, [esi - 0x4001]
jmp 0x4cb14a
add esi, 0x4001
mov dword [esp + 0x20], esi
mov ecx, esi
mov eax, dword [edx + 0x1c]
mov dword [esp + ebp*4 + 0x218], edi
mov ebx, dword [eax + 0xde0]
mov esi, dword [eax + 0xde4]
mov eax, dword [eax + 0xde8]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
add ebx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], esi
add eax, esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x64], eax
add ecx, esi
mov esi, dword [edx + 0x14]
mov dword [esp + 0x58], ecx
xor ecx, 0x40000000
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, byte [edx + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
xor eax, 0x40000000
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x28], ebx
xor ebx, 0x40000000
mov dword [esp + 0x3c], eax
sar eax, cl
mov dword [esp + 0x48], ebx
mov dword [esp + ebp*4 + 0x198], esi
sar ebx, cl
and eax, 1
shl eax, 1
and ebx, 1
or eax, ebx
lea edx, [eax + esi*8]
mov eax, dword [esp + 0x20]
sar eax, cl
mov ebx, dword [edx*4 + 0x548060]
mov edx, dword [esp + 0x328]
and eax, 1
shl eax, 2
or ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
sar ecx, 2
and ecx, 1
xor ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + ebp*4 + 0x98], ecx
mov dword [esp + ebp*4 + 0x118], edx
mov dword [esp + ebp*4 + 0x298], eax
call fcn.004c5830
mov eax, dword [0xb97d20]
test eax, eax
je 0x4cb280
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cb280
test byte [eax + 0x38], 0x80
je 0x4cb280
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4cb256
mov eax, dword [esp + 0x18]
test byte [eax + 0x5c], 0x80
je 0x4cb275
mov edx, dword [eax + 0x48]
xor ecx, ecx
mov cx, word [eax + 0x1c]
push edx
push eax
call dword [ecx*4 + 0xa9c4e0]
mov eax, dword [esp + 0x20]
add esp, 8
mov eax, dword [eax + 0x58]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4cb252
mov al, byte [esp + 0x24]
mov cl, byte [edi + 0x18]
test al, cl
je 0x4cb427
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [ecx - 1]
mov dword [esp + 0x24], edx
jmp 0x4cb2a4
mov edx, dword [esp + 0x24]
cmp ebp, 0x10
jge 0x4cb427
mov ecx, dword [0xb97d20]
test ecx, ecx
je 0x4cb336
test eax, eax
je 0x4cb336
mov eax, dword [esp + 0x58]
lea ecx, [edx - 1]
sar eax, cl
mov ecx, edx
and eax, 4
mov edx, eax
mov eax, dword [esp + 0x54]
sar eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 2
or edx, eax
mov eax, dword [esp + 0x28]
sar eax, cl
mov ecx, dword [esp + 0x10]
and eax, 1
or edx, eax
mov eax, dword [ecx + edx*4 + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4cb336
mov edx, eax
test byte [edx + 0x38], 0x80
je 0x4cb336
mov eax, edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4cb30c
mov eax, dword [esp + 0x18]
test byte [eax + 0x5c], 0x80
je 0x4cb32b
mov edx, dword [eax + 0x48]
xor ecx, ecx
mov cx, word [eax + 0x1c]
push edx
push eax
call dword [ecx*4 + 0xa9c4e0]
mov eax, dword [esp + 0x20]
add esp, 8
mov eax, dword [eax + 0x58]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4cb308
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
inc ebp
sar eax, 1
dec ecx
dec edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
test bl, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
je 0x4cb360
add ecx, eax
jmp 0x4cb362
sub ecx, eax
xor eax, eax
cmp esi, 4
mov al, byte [ebx + edi + 0x10]
mov dword [esp + 0x14], ecx
jge 0x4cb37f
mov ecx, eax
add eax, esi
xor ecx, esi
and ecx, 4
and eax, 3
jmp 0x4cb390
mov edx, eax
mov ecx, esi
and edx, 3
xor eax, esi
sub ecx, edx
and ecx, 3
and eax, 4
add ecx, eax
mov eax, dword [esp + 0x3c]
xor edx, edx
mov esi, ecx
mov dx, word [edi + ebx*2]
mov ecx, dword [esp + 0x1c]
mov edi, edx
mov edx, dword [esp + 0x48]
sar eax, cl
sar edx, cl
mov ebx, dword [esp + 0x4c]
mov dword [esp + ebp*4 + 0x198], esi
shl edi, 5
and eax, 1
add edi, ebx
shl eax, 1
and edx, 1
mov dword [esp + ebp*4 + 0x218], edi
or eax, edx
mov edx, dword [esp + 0x20]
sar edx, cl
lea eax, [eax + esi*8]
mov ecx, dword [esp + 0x14]
mov dword [esp + ebp*4 + 0x118], ecx
mov ebx, dword [eax*4 + 0x548060]
and edx, 1
shl edx, 2
or ebx, edx
mov edx, dword [esp + 0x328]
mov eax, ebx
mov ecx, ebx
sar eax, 2
and eax, 1
xor eax, edx
mov edx, 1
shl edx, cl
mov cl, byte [edi + 0x18]
mov dword [esp + ebp*4 + 0x98], eax
mov eax, dword [esp + 0x10]
mov dword [esp + ebp*4 + 0x298], eax
test dl, cl
jne 0x4cb2a0
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x20], eax
cmp ebp, 0x10
jne 0x4cb4d5
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
and ecx, 0xffff8000
and edx, 0xffff8000
sub ecx, ebx
mov ebx, dword [esp + 0x324]
add ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
fild dword [esp + 0x28]
sub edx, ecx
mov ecx, dword [esp + 0x50]
add edx, eax
mov eax, dword [esp + 0x14]
fstp qword [esp + 0x80]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x328]
fild dword [esp + 0x28]
sub eax, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
push ecx
fstp qword [esp + 0x8c]
fild dword [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push esi
push eax
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x78]
fstp qword [esp + 0xa0]
push ebp
push ecx
lea edx, [esp + 0x98]
push ebx
push edx
push eax
call fcn.004ca010
add esp, 0x24
test eax, eax
jne 0x4cb6f2
mov eax, dword [esp + ebp*4 + 0x98]
test eax, eax
je 0x4cb65c
cmp ebp, 0x10
jge 0x4cb65c
mov ebx, dword [esp + 0x328]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
dec eax
mov dword [esp + ebp*4 + 0x98], eax
xor eax, ebx
sar edx, cl
mov ebx, eax
mov eax, dword [esp + 0x48]
sar eax, cl
lea ecx, [ebx + ebx]
and edx, 1
or edx, ecx
and eax, 1
shl edx, 1
or edx, eax
lea edx, [edx + esi*8]
mov ecx, dword [edx*4 + 0x548060]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
sar edx, cl
lea ecx, [ebx*4]
and edx, 2
or edx, ecx
mov ecx, dword [esp + 0x24]
or edx, eax
mov eax, 1
shl eax, cl
test byte [edi + 0x18], al
je 0x4cb430
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc ebp
sar eax, 1
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
dec ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x4cb582
add ecx, eax
jmp 0x4cb584
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp esi, 4
mov al, byte [ecx + edi + 0x10]
mov ecx, eax
jge 0x4cb5a9
xor ecx, esi
add eax, esi
and ecx, 4
and eax, 3
add ecx, eax
mov esi, ecx
jmp 0x4cb5bc
and ecx, 3
mov ebx, esi
sub ebx, ecx
xor eax, esi
and ebx, 3
and eax, 4
add ebx, eax
mov esi, ebx
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + ebp*4 + 0x98], 2
mov dword [esp + ebp*4 + 0x198], esi
mov ax, word [edi + ecx*2]
mov ecx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x14]
shl edi, 5
mov dword [esp + ebp*4 + 0x118], eax
mov eax, dword [0xb97d20]
add edi, ecx
test eax, eax
mov dword [esp + ebp*4 + 0x218], edi
je 0x4cb64c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cb650
test ebp, ebp
jne 0x4cb613
mov ecx, 7
sub ecx, edx
mov edx, ecx
mov edx, dword [eax + edx*4 + 0xc]
test edx, edx
mov dword [esp + 0x10], edx
je 0x4cb64c
test byte [edx + 0x38], 0x80
je 0x4cb64c
mov eax, edx
mov ebx, dword [eax + 0x2c]
test byte [ebx + 0x5c], 0x80
je 0x4cb645
mov edx, dword [ebx + 0x48]
xor ecx, ecx
mov cx, word [ebx + 0x1c]
push edx
push ebx
call dword [ecx*4 + 0xa9c4e0]
add esp, 8
mov ebx, dword [ebx + 0x58]
test ebx, ebx
jne 0x4cb62a
mov eax, dword [esp + 0x10]
mov dword [esp + ebp*4 + 0x298], eax
jmp 0x4cb430
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x330]
shl edi, 1
inc esi
inc edx
dec ebp
mov dword [esp + 0x2c], edi
cmp ebp, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jl 0x4cb7f2
mov eax, dword [0xb97d20]
test eax, eax
je 0x4cb6c9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cb6c9
mov edi, pe_nt_image_headers32
test word [eax + 0x38], di
je 0x4cb6c9
mov esi, dword [eax + 0x2c]
test word [esi + 0x5c], di
je 0x4cb6c2
mov ecx, dword [esi + 0x48]
xor eax, eax
mov ax, word [esi + 0x1c]
push ecx
push esi
call dword [eax*4 + 0xa9cae0]
add esp, 8
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x4cb6a7
mov edx, dword [esp + ebp*4 + 0x118]
mov eax, dword [esp + ebp*4 + 0x298]
mov edi, dword [esp + ebp*4 + 0x218]
mov esi, dword [esp + ebp*4 + 0x198]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x4cb430
fld qword [ebx + 0x10]
fsub qword [esp + 0x78]
fcom qword [0x5333b0]
fnstsw ax
test ah, 1
je 0x4cb708
fchs
fild dword [esp + 0x32c]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x4cb7f2
mov esi, dword [esp + 0x31c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
lea ecx, [esi + 0x38]
xor edi, 1
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x6c]
lea ecx, [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
fld qword [ebx + 0x10]
fsub qword [esp + 0x78]
fcom qword [0x5333b0]
fnstsw ax
test ah, 1
je 0x4cb786
fchs
mov eax, dword [esp + 0x334]
mov dword [esi + 0x58], 1
fstp qword [esi + 0x60]
test eax, eax
je 0x4cb7dd
mov ebx, dword [esp + 0x320]
push ecx
mov eax, dword [ebx + 0x1c]
push eax
call fcn.004cb810
mov ecx, dword [esp + 0x20]
add esp, 8
test ecx, ecx
je 0x4cb7bd
mov ecx, eax
mov dword [esp + 0x18], ecx
test edi, edi
je 0x4cb7c3
mov edi, eax
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + ecx*4 + 0xd3c]
mov dword [esi + 0x4c], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ecx + edi*4 + 0xd3c]
mov dword [esi + 0x50], edx
call fcn.004c5870
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x308
ret
call fcn.004c5870
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x308
ret