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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x40]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
mov esi, dword [ebx + 8]
push edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x50c2d7
jmp 0x50c2c8
mov eax, dword [esp + 0x10]
cmp dword [eax], ecx
je 0x50c2d7
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x50c2c4
movsx edi, word [edx + 0x2a]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebx + 0x28]
push 0
add edi, 2
push edi
push eax
lea edx, [eax + 1]
push 0x6c
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x28], edx
call fcn.004cd400
mov edx, dword [ebp + 0x20]
add esp, 0x14
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x2c]
push 0
lea ecx, [eax + 1]
push 4
lea eax, [eax + edi + 1]
push 0
mov dword [esp + 0x2c], eax
inc eax
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ebx
mov dword [esp + 0x28], ecx
call fcn.00518750
add esp, 0x1c
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50c637
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push 0x7b
push esi
call fcn.004cd400
mov eax, dword [ebp + 0x18]
add esp, 0x14
test eax, eax
je 0x50c373
mov ecx, dword [esp + 0xc]
inc ecx
push ecx
push eax
push ebx
call fcn.004e54a0
add esp, 0xc
jmp 0x50c38b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push 0
inc edx
push edx
push eax
push 0x7b
push esi
call fcn.004cd400
add esp, 0x14
mov eax, dword [ebp + 0x10]
xor ecx, ecx
xor edx, edx
cmp dx, word [eax + 0x2a]
mov dword [esp + 0x18], ecx
jge 0x50c405
mov edx, dword [esp + 0xc]
add edx, 2
mov dword [esp + 0x1c], edx
jmp 0x50c3b8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + ecx*4]
push edx
test eax, eax
jl 0x50c3d9
mov edx, dword [ebp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8 + 8]
push eax
push ebx
call fcn.004e54a0
add esp, 0xc
jmp 0x50c3ed
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push 0x9d
push esi
call fcn.004cd400
add esp, 0x14
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
movsx ecx, word [edx + 0x2a]
inc dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x50c3b0
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + 0x31]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50c463
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
jne 0x50c450
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
movsx edx, byte [eax + 1]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x10]
push edx
call fcn.004cdcf0
mov eax, dword [esp + 0x24]
add esp, 4
mov byte [eax + 1], 0
mov dword [eax + 0x10], 0
mov byte [eax], 0xa6
cmp dword [ebx + 0x78], 0
jne 0x50c4f1
mov byte [ebx + 0x14], 0
jmp 0x50c4f1
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebx
push edi
push eax
push 0x63
push esi
call fcn.004cd400
add esp, 0x14
push 0
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
push 0x73
push esi
call fcn.004cd400
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
add esp, 0x14
inc eax
push eax
push ecx
push ebx
push 0x74
push esi
call fcn.004cd400
mov edx, dword [esp + 0x40]
add esp, 0x14
push edx
call fcn.00519100
add esp, 4
push 0
push 0
push ebx
push 0x25
push esi
call fcn.004cd400
add esp, 0x14
xor ebx, ebx
mov dword [esp + 0x24], eax
test edi, edi
jle 0x50c4ee
lea ecx, [ecx]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
lea ecx, [ebx + eax]
push ecx
push ebx
push edx
push 0x60
push esi
call fcn.004cd400
inc ebx
add esp, 0x14
cmp ebx, edi
jl 0x50c4d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push eax
mov eax, ebx
call fcn.0050e090
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
add esp, 4
cmp dword [edx + 0x30], ecx
jg 0x50c521
mov eax, dword [esp + 0xc]
push eax
push edi
push 0
push 0xc
call fcn.004cd3c0
add esp, 0x10
jmp 0x50c551
lea edx, [ecx + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 8], edi
mov edi, dword [esp + 0xc]
mov byte [eax], 0xc
mov word [eax + 2], dx
mov dword [eax + 4], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
jne 0x50c59b
test eax, eax
jge 0x50c564
mov eax, dword [esi + 0x88]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x50c589
mov edx, dword [esp + 0x10]
push edx
push esi
mov eax, 0xfffffff4
call fcn.004cde50
add esp, 8
jmp 0x50c59b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50c59b
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf4
inc dword [eax + 0xc]
mov ecx, dword [ebp + 0x24]
cmp ecx, 0xa
jne 0x50c5a8
mov ecx, 2
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x50c5bd
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
mov word [edx + eax*4 - 0x12], cx
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x50c5c6
mov ebx, eax
cmp dword [esp + 0x1c], 0
mov byte [ebx + 0x15], 1
jne 0x50c62a
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
push 0
lea eax, [edi + 1]
push eax
push ebx
push 7
push esi
call fcn.004cd400
mov eax, dword [esi + 0x88]
add esp, 0x14
test edi, edi
jge 0x50c5f8
lea edi, [eax - 1]
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x50c607
mov ecx, 0x5ef850
jmp 0x50c610
mov ecx, dword [esi + 0x58]
lea edx, [edi + edi*4]
lea ecx, [ecx + edx*4]
push 0
push 0
push ebx
push 0x70
push esi
mov dword [ecx + 8], eax
call fcn.004cd400
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x2c]
push edx
call fcn.00519100
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret