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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edi
push eax
push ecx
xor ebp, ebp
lea ecx, [esi + 0x2c]
mov dword [esi + 0x654], ebp
call fcn.00549a70
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
add edx, 7
push edx
add eax, 7
push eax
lea ecx, [esi + 0x6c]
call fcn.00549a70
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.00528b00
lea edi, [esi + 0x82c]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50cf42
sub eax, edx
mov dword [esp + 0x24], eax
je 0x50cfa6
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50cf56
push ebp
sub eax, edx
push eax
push edi
mov ecx, 0x2209408
call fcn.005430a0
mov ecx, 0x9b
sub ecx, eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [0x6bc860]
call fcn.005cd414
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push edi
push ebp
push 0xffffffffffffffff
add edx, 0x16
push edx
lea edx, [ecx + eax + 0x41]
push edx
push 0x2209408
call fcn.005418c0
add esp, 0x18
lea edi, [esi + 0x8ac]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50cfb1
sub eax, edx
mov dword [esp + 0x24], eax
je 0x50d015
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50cfc5
push ebp
sub eax, edx
push eax
push edi
mov ecx, 0x2209408
call fcn.005430a0
mov ecx, 0x9b
sub ecx, eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul dword [0x6bc860]
call fcn.005cd414
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push edi
push ebp
push 0xffffffffffffffff
add edx, 0x2e
push edx
lea edx, [ecx + eax + 0x41]
push edx
push 0x2209408
call fcn.005418c0
add esp, 0x18
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
add ebx, 0xf
add ecx, 0x92
lea eax, [ecx + 0x20]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
jmp 0x50d040
xor ebp, ebp
lea edx, [ebx + 0x20]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edx
lea ecx, [ecx]
mov eax, dword [esi + 0x820]
mov edx, dword [esp + 0x14]
lea eax, [edx + eax*4 - 4]
lea eax, [eax + eax*2]
lea ebp, [ebp + eax*2]
cmp ebp, 0xf0
jge 0x50d11d
lea edi, [ebp + ebp*4]
shl edi, 3
movzx eax, byte [edi + 0x86b5e9]
test eax, eax
je 0x50d0f7
xor edx, edx
mov dl, byte [edi + 0x86b5eb]
push 1
push 0
push edx
movzx edx, byte [edi + 0x86b5ea]
push edx
push eax
push ecx
push ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x654]
call fcn.004a3400
cmp byte [esi + 0x709], 0xff
jne 0x50d0f7
mov eax, dword [0x71c2a4]
cmp eax, ebx
jl 0x50d0f7
cmp eax, dword [esp + 0x18]
jg 0x50d0f7
mov eax, dword [0x71c2a8]
cmp eax, dword [esp + 0x10]
jl 0x50d0f7
cmp eax, dword [esp + 0x1c]
jg 0x50d0f7
mov dword [esi + 0x654], 1
mov al, byte [edi + 0x86b5e9]
mov byte [esi + 0x658], al
mov cl, byte [edi + 0x86b5ea]
mov dword [esp + 0x24], ebp
mov byte [esi + 0x659], cl
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add edx, 0x27
add ebx, 0x27
inc ebp
cmp ebp, 6
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ebp
jl 0x50d050
jmp 0x50d125
mov dword [esp + 0x14], 4
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0x14]
add ecx, 0x27
add ebp, 0x27
add ebx, 0xf
inc eax
cmp eax, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
jl 0x50d040
mov ebx, 1
lea ebp, [esi + 0x5c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea edi, [eax + edx + 0xb]
mov eax, dword [0x71c2a4]
cmp eax, edi
jl 0x50d241
lea ecx, [edi + 0x2e]
cmp eax, ecx
jg 0x50d241
mov eax, dword [esi + 8]
mov edx, dword [0x71c2a8]
lea ecx, [eax + 0x72]
cmp edx, ecx
jl 0x50d241
lea edx, [eax + 0x8e]
cmp dword [0x71c2a8], edx
jg 0x50d241
fild dword [esp + 0x10]
mov edx, dword [esi + 0x820]
sub esp, 8
cmp edx, ebx
fmul dword [0x6bfde0]
fstp dword [esp + 4]
jne 0x50d216
lea eax, [ebx - 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x6bfde0]
fstp dword [esp]
push 0x3f800000
push 0x3f000000
push 0x20
push 0x40
push ecx
push edi
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
call fcn.00549ba0
mov ecx, dword [esi + 8]
push 0x3f800000
push 0
push 0x3f000000
push 0
push 0x20
add ecx, 0x72
push 0x20
push ecx
add edi, 0xe
jmp 0x50d2f0
lea edx, [ebx - 1]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
add eax, 0x78
fmul dword [0x6bfde0]
fstp dword [esp]
push 0x3f800000
push 0x3f000000
push 0x20
push 0x40
push eax
jmp 0x50d2c6
fild dword [esp + 0x10]
mov eax, dword [esi + 0x820]
mov edx, dword [esi + 8]
sub esp, 8
cmp eax, ebx
fmul dword [0x6bfde0]
lea ecx, [ebx - 1]
fstp dword [esp + 4]
jne 0x50d2a6
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
add edx, 0x72
lea ecx, [esi + 0x4c]
fmul dword [0x6bfde0]
fstp dword [esp]
push 0x3f000000
push 0
push 0x20
push 0x40
push edx
push edi
push 0xffffffffffffffff
call fcn.00549ba0
mov eax, dword [esi + 8]
push 0x3f800000
push 0
push 0x3f000000
add eax, 0x72
push 0
add edi, 0xe
jmp 0x50d2eb
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
add edx, 0x78
fmul dword [0x6bfde0]
fstp dword [esp]
push 0x3f000000
push 0
push 0x20
push 0x40
push edx
push edi
lea ecx, [esi + 0x3c]
push 0xffffffffffffffff
call fcn.00549ba0
mov eax, dword [esi + 8]
push 0x3f800000
push 0
push 0x3f800000
add eax, 0x78
push 0x3f000000
add edi, 0x10
push 0x20
push 0x20
push eax
push edi
mov ecx, ebp
push 0xffffffffffffffff
call fcn.00549ba0
mov edx, dword [esp + 0x1c]
add edx, 0x2f
inc ebx
lea ecx, [ebx - 1]
cmp ecx, 5
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
jl 0x50d163
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret