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

Disassembly:
xor ebp, ebp
jmp 0x49cb4b
and al, 0xdc
add byte [eax], al
add byte [ecx + 0xf424b4], cl
add byte [eax], al
push esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x9c], 0
call fcn.0049d0e0
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
mov esp, 0xbc24
add byte [eax], al
je 0x49c9d1
cmp dword [esp + 0x38], 0
jne 0x49c9d1
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49cb36
je case.0x49c9ea.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49c9ea
jmp dword [eax*4 + 0x49cd80]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49ca3d
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49ca3d
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49ca3d
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49ca3d
jmp 0x49ca30
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49ca3d
inc edi
cmp edi, ecx
jb 0x49ca30
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49ca8e
test edx, edx
je 0x49cb05
cmp esi, ebx
jae 0x49ca80
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.00508290
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49ca80
lea eax, [ebp + 1]
jmp 0x49ca82
xor eax, eax
test eax, eax
jne 0x49cb4b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49cb4b
cmp edi, dword [esp + 0x14]
ja 0x49cb4b
invalid
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49ca92
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49ca92
cmp ecx, 1
je 0x49cb4b
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49cb4b
jmp 0x49ca92
cmp ebp, 1
je 0x49cc2e
test bh, ch
add byte [eax], al
invalid
cmp ebp, 0xfffffc19
je 0x49cc2e
cmp dword [esp + 0x3c], 0
je 0x49cb5f
push dword [esp + 0x64]
call dword [0xc5d93c]
add esp, 4
test ebp, ebp
je 0x49cb91
cmp ebp, 0xfffffff4
je 0x49cb91
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49cb84
push esi
mov esi, dword [esi + 4]
call dword [0xc5d944]
add byte [ebx - 0x97afb3c], al
jne 0x49cb73
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49cbe1
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49cbda
mov eax, dword [esp + 0x268]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x258]
sub ebx, edx
fimul dword [ecx + 0x249c8b18]
pop esp
add al, byte [eax]
add byte [ecx - 0x67cfba8], cl
add bh, byte [esi + 5]
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49cbe4
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x24]
je 0x49cc7f
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49cc61
lea eax, [ebx*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x270]
cmp dword [esp + 0xe4], ebx
jle 0x49cc75
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xc5d93c]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49cc9b
cmp esi, ebx
jl 0x49cc9b
mov eax, esi
cdq
sub eax, edx