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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ebx, dword [ecx]
mov dword [esp], 0
mov ecx, esp
push ecx
push 0
push eax
push edx
call fcn.00516a50
add esp, 0x10
mov ebp, 0xa
test eax, eax
je 0x50c487
push dword [esp]
call fcn.00518150
add esp, 4
mov eax, ebp
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [edi + 0x90]
push dword [esp]
call fcn.00518190
add esp, 4
movzx eax, ax
push eax
push esi
call fcn.00513940
add esp, 8
xor ebp, ebp
test eax, eax
je 0x50c472
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov esi, dword [eax + 0x3c]
push esi
call fcn.005181f0
add esp, 4
mov ebx, eax
push edi
call fcn.005181f0
add esp, 4
cmp ebx, eax
jne 0x50c472
push esi
call fcn.005181f0
add esp, 4
test eax, eax
je 0x50c5b7
xor ebx, ebx
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call fcn.00518390
add esp, 0x14
test eax, eax
jne 0x50c5b0
cmp dword [esp + 0x10], 0
je 0x50c5b0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push edi
call fcn.00518390
add esp, 0x14
test eax, eax
jne 0x50c5b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50c5b0
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x28]
jne 0x50c5b0
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x20]
jne 0x50c5b0
mov ecx, dword [esp + 0x18]
test byte [ecx + 1], 4
je 0x50c579
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x50], 0
je 0x50c59f
push eax
push dword [esp + 0x14]
call dword [0x100bc60]
add esp, 8
test eax, eax
jne 0x50c5b0
inc ebx
push esi
call fcn.005181f0
add esp, 4
cmp ebx, eax
jb 0x50c4f0
jmp 0x50c5b7
push eax
push dword [esp + 0x14]
call fcn.007ddf68
add esp, 8
test eax, eax
je 0x50c58b
xor ebp, ebp
jmp 0x50c472
mov ebx, dword [esp + 0x50]
push ebx
push dword [esp + 0x4c]
push dword [esp + 8]
mov esi, dword [esp + 0x14]
push esi
call fcn.00520f00
add esp, 0x10
test eax, eax
jne 0x50c472
push dword [esi + 0x30]
call fcn.00513d40
add esp, 4
mov dword [esi + 0x30], 0
push dword [esp]
call fcn.005181e0
add esp, 4
cmp eax, 1
jne 0x50c61d
push dword [esi + 0x3c]
call fcn.005195e0
add esp, 4
test eax, eax
je 0x50c61d
push dword [esp]
call fcn.005195e0
add esp, 4
test eax, eax
je 0x50c742
mov esi, dword [esp + 0x4c]
push dword [esp]
call fcn.005181c0
add esp, 4
and eax, 4
shr eax, 2
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov edx, ecx
and edx, 4
or edx, esi
sete dl
and dl, al
cmp dl, 1
jne 0x50c663
mov eax, dword [esp + 8]
mov dword [eax + 0x50], 1
push ebx
push eax
call fcn.0050b2d0
add esp, 8
jmp 0x50c472
test cl, cl
mov esi, dword [esp + 8]
js 0x50c697
push dword [esp]
call fcn.005181e0
add esp, 4
cmp eax, 2
je 0x50c76f
cmp eax, 5
je 0x50c768
cmp eax, 4
jne 0x50c697
mov esi, 5
jmp 0x50c774
push dword [esp]
push esi
push ebx
push edi
call fcn.0050cd90
add esp, 0x10
mov dword [esp + 0x18], eax
mov esi, dword [esi + 0x50]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x208]
push ebx
push dword [eax + 0x84]
call fcn.005144d0
add esp, 8
test eax, eax
je 0x50c7e1
cmp dword [ebx + 0x60], 0
je 0x50c6e3
mov dword [ebx + 0x60], 0
push eax
call fcn.00514400
add esp, 4
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x78], 0
cmp esi, 1
sete byte [esp + 7]
mov esi, dword [ebx + 0x208]
cmp dword [esi + 0xd8], 0
je 0x50c7e1
call fcn.0051af20
test eax, eax
je 0x50c7e1
mov ebp, eax
push eax
push ebx
call fcn.00511550
add esp, 8
test eax, eax
je 0x50c7a0
push ebp
call fcn.0051af80
add esp, 4
mov ebx, dword [esp + 0xc]
jmp 0x50c7e1
mov ecx, esi
call fcn.0050c8a0
test eax, eax
mov ecx, dword [esp + 0x14]
je 0x50c799
mov edx, dword [esp + 0xc]
push 0
push eax
push esi
mov ebp, eax
call fcn.0050bf20
add esp, 0xc
jmp 0x50c472
mov esi, 6
jmp 0x50c774
mov esi, 3
mov edi, dword [esp + 8]
mov edx, dword [edi + 0x50]
mov ecx, dword [esp + 0xc]
call fcn.0050bfd0
push dword [esp]
push 1
push esi
push ebx
push edi
call fcn.0050b170
add esp, 0x14
jmp 0x50c472
push ebx
push esi
jmp 0x50c656
push 0
push ebp
call fcn.0051b3d0
add esp, 8
test eax, eax
mov ebx, dword [esp + 0xc]
je 0x50c7e1
xor ecx, ecx
movzx edx, byte [esp + 7]
mov cl, dl
inc ecx
push dword [esi + 0xdc]
push ecx
push 1
push eax
mov edi, eax
call dword [esi + 0xd8]
add esp, 0x10
mov eax, dword [0xff0238]
push edi
mov edi, dword [esp + 0x18]
call dword [eax]
add esp, 4
mov esi, dword [esp]
push esi
push 0
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call fcn.005215a0
add esp, 0x10
push esi
push dword [ebx + 0x58]
push 0
push dword [ebx + 0x44]
call dword [ebx + 0x40]
add esp, 0x10
push dword [ebx + 0x2c]
call fcn.00514680
add esp, 4
push dword [ebx + 0x30]
call fcn.00513d40
add esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x28]
movzx ecx, word [ebx]
push ecx
push dword [eax + 0x90]
call fcn.00513970
add esp, 8
push dword [ebx + 0x34]
call fcn.00513d40
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
push dword [ebx + 0x3c]
call fcn.00518150
add esp, 4
mov eax, dword [0xff0238]
push ebx
call dword [eax]
add esp, 4
push edi
call fcn.0051db00
add esp, 4
xor ebp, ebp
cmp dword [esp + 0x18], 0
jne 0x50c472
jmp 0x50c47d