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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x499730
mov al, byte [edx]
xor esi, esi
add ecx, edx
mov dword [esp + 0x28], edi
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
inc esi
mov ecx, edx
mov dword [esp + 0x18], esi
mov byte [esp + 1], al
movzx eax, al
mov edi, eax
test bl, 1
je 0x4996dc
cmp ecx, dword [esp + 8]
jne 0x4996e8
jmp 0x4996ff
mov ebx, dword [esp + 8]
sub ebx, ecx
cmp ebx, esi
jbe 0x4996ff
add ecx, esi
mov ebx, dword [esp + 0x18]
movzx edx, byte [ecx]
inc ecx
xor esi, esi
add ebx, ebx
lea edi, [edx + edi*2]
mov dword [esp + 0x18], ebx
mov bl, 1
jmp 0x4996cf
mov ecx, dword [ebp + 8]
cmp ecx, 2
jae 0x49974a
mov al, byte [esp + 1]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], 0x44959e
mov byte [esp + 0x48], al
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 4]
jmp 0x4999ac
mov dword [esp + 0x78], 0x408bb6
and dword [esp + 0x70], 0
mov dword [esp + 0x74], 1
jmp 0x4999ac
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + 1]
mov dl, byte [ecx + str.743210_._g]
cmp dl, byte [eax + str.743210_._g]
jae 0x499776
mov al, byte [esp + 1]
mov bl, 1
xor edx, edx
mov dword [esp + 0x14], 0
mov byte [esp + 1], cl
jmp 0x499784
mov dword [esp + 0x14], 0
mov dl, 1
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x38], edi
push 2
pop ecx
mov esi, dword [esp + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x10], 0
mov ecx, edx
mov byte [esp + 2], dl
movzx edx, byte [esp + 1]
mov ecx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x14]
movzx eax, al
mov dword [esp + 0x3c], eax
mov eax, esi
test byte [esp + 0x10], 1
je 0x4997f3
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4998f7
xor edx, edx
cmp eax, dword [esp + 8]
setne cl
je 0x4998f7
mov dl, cl
dec esi
mov ebx, edi
lea ecx, [eax + edx]
add edx, edi
jmp 0x499824
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
cmp esi, edx
jbe 0x4998f7
mov ecx, dword [esp + 8]
sub ecx, eax
cmp ecx, edx
jbe 0x4998f7
mov ecx, edx
lea ebx, [edx + edi]
not ecx
add esi, ecx
lea ecx, [eax + edx + 1]
add eax, edx
lea edx, [edx + edi + 1]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4998f7
mov dword [esp + 0x14], edx
movzx edx, byte [eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], esi
mov cl, byte [edx + str.743210_._g]
cmp cl, byte [eax + str.743210_._g]
jb 0x4998bb
mov dword [esp + 0x40], edx
cmp dl, byte [esp + 1]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov al, 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, esi
mov edi, edx
je 0x4997c5
mov eax, dword [esp + 0x3c]
mov edi, edx
cmp cl, byte [eax + str.743210_._g]
mov eax, esi
jae 0x4997c5
xor ecx, ecx
cmp ebx, 0x100
mov edx, 0x5cf704
setae cl
call fcn.004569a3
mov al, 1
mov dword [esp + 0xc], 0
mov byte [esp + 2], bl
mov dword [esp + 0x10], eax
mov eax, ebx
mov eax, dword [esp + 0x40]
jmp 0x4997b8
xor ecx, ecx
cmp ebx, 0x100
mov esi, edx
mov edx, 0x5cf714
setae cl
call fcn.004569a3
mov al, 1
mov ecx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov al, byte [esp + 1]
mov byte [esp + 1], cl
jmp 0x4997a3
mov cl, byte [esp + 2]
mov eax, dword [esp + 0x1c]
cmp al, cl
mov byte [esp + 0x2c], cl
mov byte [esp + 3], al
je 0x4999e0
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x38]
movzx ecx, al
cmp ecx, edx
jae 0x4999c7
mov eax, dword [esp + 4]
mov al, byte [eax + ecx]
movzx ebx, al
cmp byte [ebx + str.743210_._g], 0xfa
jbe 0x49993f
and dword [esp + 0x2c], 0
mov ebx, dword [esp + 4]
jmp 0x499988
movzx edx, byte [esp + 2]
mov byte [esp + 8], al
cmp edx, dword [ebp + 8]
jae 0x4999d1
mov edi, dword [esp + 4]
mov eax, edx
shl ebx, 0x10
mov dword [esp + 0x2c], 0x449d52
shl eax, 8
or ebx, eax
movzx eax, byte [edi + edx]
shl eax, 0x18
or eax, ebx
mov ebx, edi
or eax, ecx
mov dword [esp + 0x30], eax
mov al, byte [esp + 8]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x35], al
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
mov edx, ebx
push eax
push dword [esp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408b0a
mov ecx, esi
add esp, 0x10
mov edi, dword [esp + 0x28]
mov edx, ebx
and dword [edi + 0x38], 0
mov dword [edi + 0x3c], edx
mov dword [edi + 0x40], ecx
push 0xe
pop ecx
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5cf7a4
call fcn.0059ee70
mov ecx, edx
mov edx, dword [ebp + 8]
push 0x5cf724
call fcn.0059ee70
lea eax, [esp + 0x48]
lea esi, [esp + 0x2c]
lea edx, [esp + 3]
and dword [eax], 0
xor ecx, ecx
inc ecx
push 0x5cf6f4
push eax
push esi
call fcn.0059ea4f