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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], str.switch_statements
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x12c
mov dword [esp + 4], 8
mov dword [esp], esi
call eax
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
sub esp, 0x14
mov dword [esp + 0x10], str.switch_statements
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x82
mov dword [esp + 4], 1
mov dword [esp], esi
call eax
mov eax, dword [ebp + 0x10]
mov ecx, edi
sub esp, 0x14
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00506dc0
mov edx, dword [ebp + 0xc]
sub esp, 8
test edx, edx
je 0x507091
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0x78]
cmp eax, 4
je 0x507376
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0x78]
cmp eax, 5
je 0x507376
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6cb38a
mov dword [esp + 8], 0x6cb40c
mov dword [esp + 4], esi
mov dword [esp], edi
call eax
mov eax, dword [edi + 0x7c]
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
sar ecx, 2
test ecx, ecx
je 0x50736c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5073d0
call fcn.004cb890
mov dword [esp], 0xb8
mov ecx, eax
call fcn.004cba30
mov ebx, eax
sub esp, 4
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
and byte [eax + 0x74], 0x80
or byte [eax + 0x7c], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x19], 1
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
movzx eax, byte [eax + 0x78]
and byte [ebx + 0x24], 0xc0
and word [ebx + 0x26], 0xfe3f
and word [ebx + 0x24], 0xc03f
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x78], al
and byte [ebx + 0x29], 0x80
and byte [ebx + 0x2c], 0x80
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x30], 0xffffffff
movzx eax, word [ebx + 0x3e]
movzx ecx, word [ebx + 0x52]
or byte [ebx + 0x48], 0x7f
or dword [ebx + 0x40], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or cx, 0x1fe0
mov word [ebx + 0x3e], ax
movzx eax, byte [ebx + 0x3c]
mov word [ebx + 0x52], cx
shr cx, 8
or ecx, 0xffffffe0
mov byte [ebx + 0x53], cl
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x3c], al
mov eax, dword [ebx + 0x44]
or word [ebx + 0x38], 0xfff
or word [ebx + 0x48], 0x780
or dword [ebx + 0x4c], 0x1ff80
or eax, 0x7f8000
mov dword [ebx + 0x44], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x47], al
or word [ebx + 0x50], 0x1ff8
and byte [ebx + 0x57], 0x1f
and byte [ebx + 0x58], 0xe0
and dword [ebx + 0x24], 0xffc03fff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x5c], 0xfffff800
mov byte [ebx + 0x54], 0xff
mov byte [ebx + 0x18], 1
mov byte [ebx + 0x59], 0
mov byte [ebx + 0x5a], 0
mov byte [ebx + 0x5b], 0
mov dword [ebx + 0x80], 1
mov dword [ebx + 0x84], 0
mov dword [ebx], 0x6f1ba8
call fcn.004cb890
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x88], eax
call fcn.004cb890
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x98], eax
call fcn.004cb890
mov dword [ebp - 0x2c], eax
call fcn.004cb890
mov dword [esp], 0xd
mov ecx, eax
call fcn.004cba30
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [eax + 8], 0
add eax, 0xc
sub esp, 4
mov byte [eax], 0
mov dword [eax - 8], 0
mov dword [eax - 0xc], 0
mov dword [ebx + 0xac], eax
mov eax, dword [edi + 0x7c]
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xb4], 0
mov edi, dword [eax + 8]
mov eax, dword [ebx]
call dword [eax + 0xac]
mov dword [esp], edi
mov ecx, eax
call fcn.006332d0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 4]
sub esp, 4
mov dword [esp], esi
call eax
sub esp, 4
call fcn.004cb890
mov dword [esp], 0x20
mov ecx, eax
call fcn.004cba30
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x10], 0
sub esp, 4
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0x14], edx
mov edx, dword [esi]
mov dword [eax], 0x6f15a8
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], 0
mov dword [eax + 4], edx
mov edx, dword [esi + 4]
mov dword [eax + 8], edx
mov edx, dword [esi + 8]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x10], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0x70]
mov ebx, dword [eax]
mov ecx, eax
call dword [ebx + 0x6c]
test al, al
jne 0x507091
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0x70]
mov ebx, dword [eax]
mov ecx, eax
call dword [ebx + 0x68]
test al, al
jne 0x507091
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
call dword [eax + 0x70]
mov ebx, dword [eax]
mov ecx, eax
call dword [ebx + 0x64]
test al, al
jne 0x507091
jmp 0x5070b7
cmp dword [edi + 0xc], 8
je 0x507460
mov eax, dword [edi]
mov eax, dword [eax + 0x74]
mov dword [esp + 0x10], 0x6c5660
mov dword [esp + 0xc], 0x6cb38a
mov dword [esp + 8], str.last_case_default_label_not_followed_by_statements
mov dword [esp + 4], esi
mov dword [esp], edi
call eax
mov ecx, dword [edi + 0x28]
mov dword [esp + 4], esi
mov dword [esp], 0x138
call fcn.00515680
mov ecx, dword [edi + 0x28]
sub esp, 8
mov dword [esp], eax
call fcn.0051a460
mov ecx, dword [eax]
sub esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ecx + 0xa8]
mov ecx, eax
mov dword [esp], 1
call edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
sub esp, 4
cmp ecx, dword [ebx + 0xc]
je 0x507485
test ecx, ecx
je 0x507481
mov dword [ecx], eax
mov eax, dword [ebx + 8]
add eax, 4
mov dword [ebx + 8], eax
jmp 0x5070dc
cmp dword [edi + 8], 0x12c
jg 0x5073da
test byte [edi + 0x48], 1
jne 0x5073da
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
jmp 0x5073df
xor eax, eax
jmp 0x507454
lea eax, [ebp - 0x1c]
mov ecx, ebx
mov dword [esp], eax
call fcn.00633060
sub esp, 4
jmp 0x5070dc