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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 0xc]
push ebx
mov eax, edx
and eax, 0xfff00000
cmp eax, 0x20500000
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
jne 0x50c2f1
test byte [ebp + 0x1c], 4
je 0x50c2f1
mov eax, edx
and eax, 0xfffff
mov dword [ebp + 0xc], 0
jbe 0x50c2e0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
sub edi, esi
mov dword [ebp - 4], edi
jmp 0x50c2c0
mov edi, dword [ebp - 4]
mov ecx, dword [esi]
cmp ecx, dword [edi + esi]
jne 0x50c2e0
mov edi, dword [ebx + 8]
mov edi, dword [edi + 0x14]
mov ecx, dword [edi + ecx*4]
test byte [ecx], 1
je 0x50c2e0
inc dword [ebp + 0xc]
add esi, 4
cmp dword [ebp + 0xc], eax
jb 0x50c2bd
cmp dword [ebp + 0xc], eax
jne 0x50c2f1
and eax, 0xfffff
or eax, 0x10000000
mov edx, eax
cmp edx, 0x50000001
jne 0x50c30f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x20500001
jmp 0x50c392
cmp edx, 0x50000002
jne 0x50c3a9
mov eax, dword [ebx + 8]
test byte [eax + 0x6c], 0x40
jne 0x50c3a9
mov esi, dword [ebp + 0x1c]
or eax, 0xffffffff
and esi, 0x40
push esi
push dword [ebp + 0x18]
lea edi, [ebp - 0x10]
push dword [ebp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov edi, 0x20500001
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.0050c279
test eax, eax
jl 0x50cb1e
mov eax, dword [ebp + 0x18]
push esi
add eax, 4
push eax
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.0050c279
test eax, eax
jl 0x50cb1e
push dword [ebp + 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push 0x20400001
push dword [ebp + 8]
mov ecx, ebx
call fcn.0050c279
test eax, eax
jl 0x50cb1e
jmp 0x50cb1c
mov ecx, dword [ebx + 8]
test byte [ecx + 0x6d], 1
je 0x50c53d
mov eax, edx
and eax, 0xfff00000
cmp eax, 0x20000000
mov dword [ebp - 0xc], eax
je 0x50c3e0
cmp eax, 0x20100000
je 0x50c3e0
cmp eax, 0x20200000
je 0x50c3e0
cmp eax, 0x20300000
jne 0x50c53d
and edx, 0xfffff
mov esi, edx
mov eax, esi
shl eax, 4
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x50c918
mov edx, esi
xor eax, eax
shl edx, 2
mov dword [ebp + eax*4 - 0x20], ecx
inc eax
add ecx, edx
cmp eax, 4
jb 0x50c408
test esi, esi
jbe 0x50c48a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
sub edx, eax
sub ecx, eax
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0xc]
cmp edi, 0x20000000
je 0x50c474
cmp edi, 0x20100000
je 0x50c467
cmp edi, 0x20200000
je 0x50c45d
cmp edi, 0x20300000
jne 0x50c482
mov edi, dword [ebx + 0x20]
mov dword [eax], edi
mov edi, dword [ebx + 0x24]
jmp 0x50c47f
mov edi, dword [ebx + 0x24]
mov dword [eax], edi
mov edi, dword [ebx + 0x20]
jmp 0x50c47f
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + eax]
mov dword [eax], edi
mov edi, dword [edx + eax]
jmp 0x50c47f
mov edi, dword [edx + eax]
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + eax]
mov dword [ecx + eax], edi
add eax, 4
dec dword [ebp - 4]
jne 0x50c430
push esi
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.0050a5b4
test eax, eax
jl 0x50c539
push esi
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.0050a5b4
test eax, eax
jl 0x50c539
mov eax, dword [ebp + 0x1c]
and eax, 0x40
push eax
push 0
push dword [ebp + 0x18]
mov edi, esi
push dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
and edi, 0xfffff
mov eax, edi
or eax, 0x10100000
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.0050c279
test eax, eax
jl 0x50c539
push dword [ebp + 0xc]
mov eax, edi
push dword [ebp - 0x20]
or eax, 0x20400000
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0050c279
test eax, eax
jl 0x50c539
push dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*8]
push eax
push dword [ebp - 0x1c]
or edi, 0x30000000
push dword [ebp + 0x10]
mov ecx, ebx
push edi
push dword [ebp + 8]
call fcn.0050c279
test eax, eax
jl 0x50c539
xor esi, esi
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x50cb1e
mov esi, eax
jmp 0x50c529
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.005595c4
mov ebx, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
mov dword [ebp - 4], eax
jae 0x50c55a
mov ecx, dword [ebx + 0x18]
mov ebx, dword [ecx + eax*4]
jmp 0x50c55c
xor ebx, ebx
xor eax, eax
cmp ebx, eax
je 0x50c918
cmp dword [ebx + 0xc], eax
jne 0x50c577
cmp dword [ebx + 4], eax
jne 0x50c577
mov dword [ebx], eax
jmp 0x50cb1c
xor esi, esi
push esi
push esi
mov ecx, ebx
call fcn.00558f5b
push esi
push esi
mov ecx, ebx
mov dword [ebp + 0xc], eax
call fcn.00558763
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
mov ecx, eax
shl ecx, 2
mov dword [ebp - 0xc], ecx
sub edx, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 8]
mov esi, dword [ebp + 0x18]
add edi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 4], 0
mov esi, dword [ebp - 8]
jbe 0x50c670
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jae 0x50c5e5
mov edx, dword [eax + 0x14]
mov edi, dword [edx + ecx*4]
jmp 0x50c5e7
xor edi, edi
test edi, edi
je 0x50c661
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 0x88]
jne 0x50c65e
test byte [edi], 0x80
je 0x50c65e
cmp dword [esi + 0x68], 0
jne 0x50c65e
inc dword [edi + 0x5c]
fld qword [edi + 0x20]
mov ecx, dword [esi + 8]
push ecx
push ecx
fstp qword [esp]
push 0
push 0
push dword [ecx + 0x78]
call fcn.0055955f
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
mov eax, dword [ebx + 8]
mov ecx, edx
mov eax, dword [eax + ecx*4]
cmp eax, 0xffffffff
je 0x50c918
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax*4]
push edi
call fcn.00559115
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
mov ecx, dword [edi + 0x30]
mov dword [eax + 0x30], ecx
jmp 0x50c661
inc dword [edi + 0x5c]
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx + 4]
jb 0x50c5cc
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x18], edi
jbe 0x50c789
mov eax, dword [ebp + 0x10]
and dword [ebp + 0x14], 0
test eax, eax
je 0x50c6ae
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x50c6ae
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 8]
jae 0x50c6a1
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x50c6a3
xor eax, eax
test eax, eax
mov dword [ebp + 0x14], eax
je 0x50c8fc
mov ecx, dword [esi + 8]
fldz
push ecx
push ecx
fstp qword [esp]
push 0
push 0
push dword [ecx + 0x88]
call fcn.0055955f
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x50c918
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 8]
jae 0x50c6e3
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax*4]
jmp 0x50c6e5
xor ecx, ecx
test ecx, ecx
je 0x50c918
test byte [ebp + 0x1f], 0xe
mov edx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
mov dword [ecx + 0x48], edx
mov dword [ecx + 0x10], edi
jne 0x50c70c
mov edx, dword [esi + 0x64]
or edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov dword [ecx], edx
mov edx, dword [esi + 0x30]
mov dword [ecx + 0x14], edx
mov edx, dword [esi + 0x34]
mov dword [ecx + 0x18], edx
mov edx, edi
mov edi, dword [ebx + 0x10]
shl edx, 2
cmp dword [ebp + 0x10], 0
mov dword [edx + edi], eax
je 0x50c72f
mov edi, dword [ebp + 0x10]
mov dword [edx + edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50c748
mov edi, dword [eax + 0x30]
mov dword [ecx + 0x30], edi
mov edi, dword [eax + 0x60]
mov dword [ecx + 0x60], edi
mov eax, dword [eax + 0x64]
mov dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x30]
cmp eax, 0xffffffff
je 0x50c779
mov eax, dword [ebx + 0x10]
mov edx, dword [edx + eax]
mov eax, dword [ecx + 0x30]
mov edi, dword [esi + 0x18]
mov dword [edi + eax*4], edx
xor eax, eax
cmp dword [ecx + 0x60], eax
jne 0x50c779
push dword [ebp - 0xc]
push 0x416510
push eax
push eax
push esi
call fcn.0050c19a
add esp, 0x14
mov edi, dword [ebp + 0x18]
inc edi
cmp edi, dword [ebp + 0xc]
mov dword [ebp + 0x18], edi
jb 0x50c67e
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x50c7a5
mov eax, dword [ebx + 0x10]
push 0
push dword [eax + edi*4]
mov ecx, esi
call fcn.0050abad
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x50c790
test byte [esi + 0x14], 4
jne 0x50c84c
mov ecx, ebx
call fcn.005589c5
test eax, eax
jne 0x50c84c
xor edi, edi
cmp edi, dword [ebp + 0xc]
jae 0x50c7f2
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax*4]
test byte [ecx], 0x40
jne 0x50c7ef
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0050c06f
test eax, eax
jl 0x50c7ef
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x50c7c5
cmp edi, dword [ebp + 0xc]
jne 0x50c84c
mov eax, dword [ebp + 0xc]
and eax, 0xfffff
or eax, 0x10000000
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebx + 4], eax
jbe 0x50c84c
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + eax*4]
fld qword [eax + 0x20]
push ecx
push ecx
fstp qword [esp]
push 0
push 0
push dword [ecx + 0x78]
call fcn.0055955f
mov ecx, dword [ebx + 8]
mov dword [ecx + edi*4], eax
mov eax, dword [ebx + 8]
cmp dword [eax + edi*4], 0xffffffff
je 0x50c918
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x50c810
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xfff00000
mov edx, 0x20500000
cmp ecx, edx
ja 0x50c9b4
je 0x50cab4
cmp ecx, 0x10000000
je 0x50c965
cmp ecx, 0x10100000
je 0x50c922
cmp ecx, 0x20000000
je 0x50cab4
cmp ecx, 0x20100000
je 0x50cab4
cmp ecx, 0x20400000
jne 0x50cb10
and dword [ebp + 0x1c], 0
cmp dword [ebp + 0xc], 0
jbe 0x50cb10
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
add edi, dword [ebp + 0x1c]
shl ecx, 2
mov edx, dword [ecx + edx]
mov edx, dword [eax + edx*4]
mov dword [ebp + 0x14], edx
mov edx, dword [ebx + 8]
mov ecx, dword [ecx + edx]
mov edi, dword [edx + edi*4]
mov edi, dword [eax + edi*4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi]
and ecx, dword [eax]
mov eax, dword [ebp + 0x14]
and ecx, 2
or dword [eax], ecx
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0xc]
jb 0x50c8b3
jmp 0x50cb10
push 0x4164e8
push 0
push 0
push esi
call fcn.0050c19a
add esp, 0x10
mov eax, 0x80004005
jmp 0x50cb1e
mov eax, 0x8007000e
jmp 0x50cb1e
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], eax
jbe 0x50cb10
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov edx, eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
shl edx, 2
mov ecx, dword [edx + ecx]
mov ecx, dword [eax + ecx*4]
mov edx, dword [edx + edi]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
and eax, 2
or dword [ecx], eax
mov eax, dword [ebp + 0x1c]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
jb 0x50c930
jmp 0x50cb10
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], eax
jbe 0x50cb10
mov edi, dword [ebx + 8]
mov edx, eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x10]
shl edx, 2
mov eax, dword [edx + eax]
mov eax, dword [ecx + eax*4]
mov edx, dword [edx + edi]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 0x34], edx
mov edx, dword [ecx]
or dword [eax], edx
fld qword [ecx + 0x20]
fstp qword [eax + 0x20]
fld qword [ecx + 0x28]
fstp qword [eax + 0x28]
mov eax, dword [ebp + 0x1c]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
jb 0x50c973
jmp 0x50cb10
cmp ecx, 0x20700000
je 0x50cab4
cmp ecx, 0x20800000
je 0x50cab4
cmp ecx, 0x30000000
je 0x50ca4f
cmp ecx, 0x50000000
jne 0x50cb10
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [ecx]
mov edx, dword [edx + 0x14]
mov ecx, dword [edx + ecx*4]
and eax, 0xfffff
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0
jbe 0x50ca38
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x14]
mov dword [ebp + 0x14], ecx
lea edi, [ecx + eax*4]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [edx + eax*4]
mov ecx, dword [edi]
mov ecx, dword [edx + ecx*4]
mov eax, dword [eax]
and eax, dword [ecx]
test al, 2
je 0x50ca38
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
add dword [ebp + 0x14], 4
add edi, 4
cmp eax, dword [ebp + 0x18]
jb 0x50ca11
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], eax
jne 0x50cb10
mov eax, dword [ebp + 0x10]
or dword [eax], 2
jmp 0x50cb10
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x14], edi
jbe 0x50cb10
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + edi*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ebx + 8]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebx + 0xc]
add edi, ecx
mov edi, dword [edx + edi*4]
mov edi, dword [eax + edi*4]
mov dword [ebp + 0x18], edi
mov edi, dword [ebp + 0x14]
lea ecx, [edi + ecx*2]
mov ecx, dword [edx + ecx*4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
and eax, dword [ecx]
test al, 1
je 0x50ca9f
mov eax, dword [ebp + 0x1c]
or dword [eax], 0x17
jmp 0x50caa9
test al, 2
je 0x50caa9
mov eax, dword [ebp + 0x1c]
or dword [eax], 2
inc edi
cmp edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
jb 0x50ca5d
jmp 0x50cb10
and dword [ebp + 0x1c], 0
cmp dword [ebp + 0xc], 0
jbe 0x50cb10
mov edx, dword [ebp + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
add edi, dword [ebp + 0x1c]
shl edx, 2
mov ecx, dword [edx + ecx]
mov ecx, dword [eax + ecx*4]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [edx + ecx]
mov edx, dword [eax + edx*4]
mov ecx, dword [ecx + edi*4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
and eax, dword [edx]
test al, 1
je 0x50cafb
mov eax, dword [ebp + 0x14]
or dword [eax], 0x17
jmp 0x50cb05
test al, 2
je 0x50cb05
mov eax, dword [ebp + 0x14]
or dword [eax], 2
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0xc]
jb 0x50cabe
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18