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

Disassembly:
sub esp, 0x120
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
xor cl, cl
mov dword [esp + 0x24], eax
xor dl, dl
mov eax, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x2c], eax
xor al, al
push ebp
mov ebp, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x138]
mov byte [esp + 0xf], al
mov byte [esp + 0xe], al
xor eax, eax
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], esi
push edi
mov edi, dword [esp + 0x140]
lea eax, [ecx + esi]
mov esi, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], ebp
lea eax, [esi - 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x1b], dl
mov dword [esp + 0x40], esi
test ebx, ebx
jne 0x4a96ee
cmp dword [esp + 0x34], ebx
jne 0x4a96ee
test eax, eax
jne 0x4a96ee
cmp edi, 0xfffffc19
jne 0x4a96ee
cmp ecx, edi
jne 0x4a96ee
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049c360
add esp, 0x1c
jmp 0x4aa4b2
mov edx, dword [esp + 0x148]
test edx, 0xe20f5a6f
je 0x4a9707
mov eax, 0xfffffffd
jmp 0x4aa4b2
test ebx, ebx
je 0x4aa4ad
test eax, eax
je 0x4aa4ad
mov eax, dword [esp + 0x150]
test ebp, ebp
jne 0x4a972a
test eax, eax
jg 0x4aa4ad
test eax, eax
jns 0x4a9738
mov eax, 0xfffffff1
jmp 0x4aa4b2
test edi, edi
jns 0x4a9746
mov eax, 0xffffffe0
jmp 0x4aa4b2
test ecx, ecx
js 0x4aa4a6
cmp ecx, edi
jg 0x4aa4a6
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x4a9778
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
jmp 0x4aa4b2
test byte [ebx + 0xc], 1
jne 0x4a9788
mov eax, 0xffffffe4
jmp 0x4aa4b2
mov ecx, dword [ebx + 8]
mov eax, 0
and ecx, 0x800
mov dword [esp + 0x3c], ecx
setne al
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc0], eax
test edx, 0x8000000
je 0x4a97b7
mov eax, 2
jmp 0x4a97bf
mov eax, edx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xfc], eax
test ecx, ecx
je 0x4a983e
test edx, 0x2000
jne 0x4a983e
lea eax, [esp + 0x20]
push eax
push edi
push dword [esp + 0x2c]
call fcn.004aa840
add esp, 0xc
test eax, eax
je 0x4a981e
cmp dword [esp + 0x150], 2
jl 0x4a97fc
mov ecx, dword [esp + 0x20]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
cmp eax, 5
jg 0x4a9814
cmp dword [esp + 0xfc], 1
mov eax, 0xffffffe7
jg 0x4aa4b2
mov eax, 0xfffffff6
jmp 0x4aa4b2
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x4a983e
cmp eax, edi
jge 0x4a983e
mov eax, esi
mov al, byte [eax]
and al, 0xc0
cmp al, 0x80
jne 0x4a983e
mov eax, 0xfffffff5
jmp 0x4aa4b2
movzx eax, word [ebx + 0x22]
mov ecx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0xa4], eax
mov edx, ecx
movzx eax, word [ebx + 0x26]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x20], ebx
test eax, eax
je 0x4a98db
mov ebx, dword [eax]
test bl, 1
je 0x4a98a2
mov ebx, dword [eax + 4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [eax]
test bl, 2
je 0x4a98ae
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
test bl, 0x10
je 0x4a98ba
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
test bl, 4
je 0x4a98cd
mov eax, dword [eax + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x34]
test bl, 8
je 0x4a98d7
mov ebx, dword [eax + 0x10]
jmp 0x4a98db
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0xc]
test esi, 0x2000
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x40]
je 0x4a9902
mov eax, dword [eax + 0x10]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
test dword [esp + 0x28], 0x4000
je 0x4a9918
mov eax, dword [eax + 0x14]
cmp eax, edx
cmovb edx, eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x1c]
test ebx, ebx
mov ecx, 0x7526b0
mov dword [esp + 0xa0], 0
cmovne ecx, ebx
mov dword [esp + 0xd8], 0
mov dword [esp + 0x124], 0
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
or eax, dword [esp + 0x148]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 0x26]
imul ebp, eax
movzx eax, word [edx + 0x22]
mov dword [esp + 0x120], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0xac], ecx
add ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x108], eax
add ebp, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xe4], ebp
mov ebp, edx
mov dword [esp + 0xe8], ebp
lea eax, [edx + edi]
mov edi, dword [esp + 0x58]
mov ebx, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x148]
mov eax, edi
shr eax, 5
and eax, 1
mov dword [esp + 0xec], ebx
mov dword [esp + 0xcc], eax
mov eax, edi
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xc8], eax
mov eax, edi
shr eax, 0x19
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, edx
shr eax, 7
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, edx
shr eax, 8
and eax, 1
mov dword [esp + 0xbc], eax
mov eax, edx
shr eax, 0xa
and eax, 1
mov dword [esp + 0xd0], eax
mov eax, edx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x28]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe0], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xb0], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0xb4], eax
mov eax, edx
and eax, 0x1800000
je 0x4a9ae0
cmp eax, 0x800000
je 0x4a9ad3
cmp eax, 0x1000000
jne 0x4a9b31
mov dword [esp + 0xdc], 0
test edx, 0x700000
mov eax, edx
cmove eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x4a9b23
je 0x4a9b00
test eax, eax
je 0x4a9ab0
cmp eax, 0x100000
je 0x4a9af9
cmp eax, 0x200000
jne 0x4a9b31
mov eax, 0xa
xor ecx, ecx
mov byte [esp + 0xa8], al
mov dword [esp + 0x8c], ecx
mov ecx, 1
mov dword [esp + 0x90], ecx
jmp 0x4a9b4e
mov dword [esp + 0xdc], 1
jmp 0x4a9a7d
test edi, 0x1800000
je 0x4a9a72
mov eax, edi
shr eax, 0x17
and eax, 1
mov dword [esp + 0xdc], eax
jmp 0x4a9a7d
mov eax, 0xd
jmp 0x4a9ab5
mov ecx, 2
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ecx
mov word [esp + 0xa8], 0xa0d
jmp 0x4a9b4e
cmp eax, 0x400000
je 0x4a9b42
cmp eax, 0x500000
je 0x4a9b3b
mov eax, 0xffffffe9
jmp 0x4aa4b2
mov ecx, 2
jmp 0x4a9b47
mov ecx, 1
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0xfc], 0
je 0x4a9b6c
test dword [esp + 0x28], 0x200
je 0x4a9b6c
mov eax, 0xfffffff3
jmp 0x4aa4b2
mov eax, 0x55555556
imul dword [esp + 0x150]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax + eax*2]
mov eax, 0x55555556
lea ecx, [edi + edi]
mov dword [esp + 0x44], edi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x4a9c02
mov ecx, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x4a9c02
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x44], eax
shl eax, 2
push eax
call dword [0x880674]
mov edi, eax
add esp, 4
mov dword [esp + 0x80], edi
test edi, edi
jne 0x4a9be6
lea eax, [edi - 6]
jmp 0x4aa4b2
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x60], 1
mov dword [esp + 0x48], edi
jmp 0x4a9c13
mov eax, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov dword [esp + 0x104], 0
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x48]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x88], eax
test ecx, ecx
je 0x4a9ca8
mov eax, dword [esp + 0x44]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x1c]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x48]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x4a9c86
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x4a9c72
mov edi, dword [esp + 0x80]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x80]
mov dword [eax], 0xffffffff
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
test byte [esp + 0x40], 0x10
mov edx, dword [esp + 0x1c]
jne 0x4a9d0e
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x4a9ce6
mov ch, byte [edx + 0x18]
mov dword [esp + 0x50], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x1a], cl
test al, 0x20
je 0x4a9d0e
movzx eax, ch
mov ecx, dword [esp + 0xb0]
mov al, byte [eax + ecx]
mov byte [esp + 0x13], al
jmp 0x4a9d15
test dword [esp + 0x28], 0x100
jne 0x4a9d0e
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a9d0e
test byte [eax + 4], 1
mov ecx, dword [esp + 0xb0]
je 0x4a9d15
add eax, 8
mov dword [esp + 0x64], eax
jmp 0x4a9d15
mov ecx, dword [esp + 0xb0]
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x4a9d3f
mov dh, byte [edx + 0x1a]
mov dword [esp + 0x68], 1
mov dl, dh
mov byte [esp + 0x12], dh
mov byte [esp + 0x1b], dl
test al, al
jns 0x4a9d3f
movzx eax, dh
mov al, byte [eax + ecx]
mov byte [esp + 0x12], al
mov edx, dword [esp + 0x14]
nop dword [eax]
nop word [eax + eax]
test dword [esp + 0x58], 0x40000
mov edi, edx
je 0x4a9e7f
cmp dword [esp + 0x3c], 0
mov edi, esi
je 0x4a9e0a
cmp esi, ebx
jae 0x4a9e7f
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x4a9db7
cmp edi, ebx
jae 0x4a9dee
push dword [esp + 0x2c]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.004aa500
add esp, 0x14
test eax, eax
jne 0x4a9e78
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x4a9dea
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x4a9dea
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x4a9dea
cmp ecx, 1
je 0x4a9e78
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x4a9e78
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, ecx
jae 0x4a9e00
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4a9e00
inc edi
cmp edi, ecx
jb 0x4a9df3
cmp edi, ebx
jb 0x4a9d80
jmp 0x4a9e78
cmp esi, ebx
jae 0x4a9e7f
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x4a9e48
cmp edi, ebx
jae 0x4a9e73
push dword [esp + 0x2c]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.004aa500
add esp, 0x14
test eax, eax
jne 0x4a9e78
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x4a9e73
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x4a9e73
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x4a9e73
cmp ecx, 1
je 0x4a9e78
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x4a9e78
inc edi
cmp edi, ebx
jb 0x4a9e15
mov ebp, dword [esp + 0xe8]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x4aa077
cmp dword [esp + 0x50], 0
je 0x4a9ee2
cmp esi, edi
jae 0x4aa077
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x13]
cmp cl, dl
je 0x4a9ed0
mov al, byte [esi]
cmp al, cl
je 0x4aa077
cmp al, dl
je 0x4aa077
inc esi
cmp esi, edi
jb 0x4a9eb3
jmp 0x4aa077
cmp byte [esi], cl
je 0x4aa077
inc esi
cmp esi, edi
jb 0x4a9ed0
jmp 0x4aa077
test dword [esp + 0x28], 0x100
je 0x4aa029
mov eax, dword [esp + 0x38]
add eax, ebp
cmp esi, eax
jbe 0x4aa077
cmp esi, edi
jae 0x4aa006
cmp dword [esp + 0x3c], 0
je 0x4a9f96
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4a9f48
cmp esi, ebp
jbe 0x4a9f7e
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.004aa660
add esp, 0x14
test eax, eax
jne 0x4aa006
mov ebp, dword [esp + 0xe8]
jmp 0x4a9f7e
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x4a9f7e
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x4a9f7e
cmp edx, 1
je 0x4aa006
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x4aa006
inc esi
cmp esi, edi
jae 0x4aa006
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4a9f11
inc esi
cmp esi, edi
jb 0x4a9f87
jmp 0x4aa006
mov eax, dword [esp + 0x8c]
nop dword [eax]
test eax, eax
je 0x4a9fcc
cmp esi, ebp
jbe 0x4aa001
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.004aa660
add esp, 0x14
test eax, eax
jne 0x4aa006
mov ebp, dword [esp + 0xe8]
jmp 0x4a9ffa
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x4a9ffa
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x4a9ffa
cmp edx, 1
je 0x4aa006
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x4aa006
mov eax, dword [esp + 0x8c]
inc esi
cmp esi, edi
jb 0x4a9fa0
cmp byte [esi - 1], 0xd
jne 0x4aa077
mov eax, dword [esp + 0x8c]
cmp eax, 1
je 0x4aa01d
cmp eax, 2
jne 0x4aa077
cmp esi, edi
jae 0x4aa077
cmp byte [esi], 0xa
jne 0x4aa077
inc esi
jmp 0x4aa077
mov ebp, dword [esp + 0x64]
test ebp, ebp
je 0x4aa077
cmp esi, edi
jae 0x4aa077
mov ebx, dword [esp + 0x3c]
nop dword [eax]
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebp], al
jne 0x4aa073
inc esi
test ebx, ebx
je 0x4aa06f
cmp esi, edi
jae 0x4aa073
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4aa06f
inc esi
cmp esi, edi
jb 0x4aa060
jmp 0x4aa073
cmp esi, edi
jb 0x4aa040
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x4aa120
cmp dword [esp + 0xfc], 0
jne 0x4aa120
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x4aa0b5
test byte [ecx + 4], 2
je 0x4aa0b5
mov eax, edx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x4aa1b1.996
cmp dword [esp + 0x68], 0
je 0x4aa120
mov eax, edx
sub eax, esi
cmp eax, 0x3e8
jge 0x4aa120
mov eax, dword [esp + 0x50]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x54]
jbe 0x4aa120
cmp ecx, edx
jae case.0x4aa1b1.996
mov ah, byte [esp + 0x1b]
cmp ah, byte [esp + 0x12]
je 0x4aa100
mov al, byte [ecx]
mov ebx, ecx
inc ecx
mov dword [esp + 0x54], ebx
cmp al, ah
je 0x4aa118
cmp al, byte [esp + 0x12]
je 0x4aa118
cmp ecx, edx
jb 0x4aa0e2
xor ebp, ebp
jmp 0x4aa309
mov al, byte [ecx]
mov ebx, ecx
mov dword [esp + 0x54], ecx
inc ecx
cmp al, ah
je 0x4aa118
cmp ecx, edx
jb 0x4aa100
xor ebp, ebp
jmp 0x4aa309
cmp ebx, edx
jae case.0x4aa1b1.996
mov ebx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0xf8], esi
push eax
push 2
push esi
push dword [esp + 0xf8]
mov dword [esp + 0x110], esi
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0xb8], 0
call fcn.0049c360
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xd8], 0
je 0x4aa198
cmp dword [esp + 0x5c], 0
jne 0x4aa198
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], esi
test ebp, ebp
jg case.default.0x4aa1b1
je case.0x4aa1b1.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x4aa1b1
jmp dword [eax*4 + 0x4aa4cc]
mov eax, dword [esp + 0x9c]
mov edi, esi
mov dword [esp + 0xa0], eax
jmp 0x4aa1ff
mov edi, dword [esp + 0xf0]
cmp edi, esi
ja 0x4aa1ff
cmp dword [esp + 0x3c], 0
lea edi, [esi + 1]
mov dword [esp + 0xa0], 0
je 0x4aa1ff
mov edx, dword [esp + 0x14]
cmp edi, edx
jae 0x4aa1ff
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4aa1ff
inc edi
cmp edi, edx
jb 0x4aa1f2
mov eax, dword [esp + 0x8c]
xor ebp, ebp
test dword [esp + 0x58], 0x40000
mov ebx, dword [esp + 0xec]
je 0x4aa252
test eax, eax
je 0x4aa2bd
cmp esi, ebx
jae 0x4aa252
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebx
push eax
push esi
call fcn.004aa500
add esp, 0x14
test eax, eax
jne 0x4aa309
mov ebx, dword [esp + 0xec]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
test byte [esp + 0x40], 0x10
mov esi, edi
jne 0x4aa309
mov edx, dword [esp + 0x14]
cmp edi, edx
ja 0x4aa309
cmp edi, dword [esp + 0x6c]
jbe 0x4aa2a6
cmp byte [edi - 1], 0xd
jne 0x4aa2a6
cmp edi, edx
jae 0x4aa2a6
cmp byte [edi], 0xa
jne 0x4aa2a6
mov ebp, dword [esp + 0x1c]
test dword [ebp + 0xc], 0x800
jne 0x4aa2a6
cmp eax, 1
je 0x4aa2a3
cmp eax, 2
je 0x4aa2a3
cmp ecx, 2
jne 0x4aa2a6
lea esi, [edi + 1]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x120], 0
jmp 0x4a9d50
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x4aa2e8
mov al, byte [esi]
cmp al, byte [esp + 0xa8]
jne 0x4aa2e8
cmp ecx, 1
je 0x4aa309
mov al, byte [esi + 1]
cmp al, byte [esp + 0xa9]
je 0x4aa309
mov eax, dword [esp + 0x8c]
jmp 0x4aa259
cmp ebp, 1
je 0x4aa397
cmp ebp, 0xfffffc19
je 0x4aa397
cmp dword [esp + 0x60], 0
je 0x4aa320
push dword [esp + 0x80]
call dword [0x880678]
add esp, 4
test ebp, ebp
je 0x4aa330
cmp ebp, 0xfffffff4
je 0x4aa330
mov eax, ebp
jmp 0x4aa4b2
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x4aa36e
mov edx, dword [esp + 0x150]
cmp edx, 1
jle 0x4aa367
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
sub eax, esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [ecx + 4], eax
cmp edx, 2
jle 0x4aa367
sub ebx, esi
mov dword [ecx + 8], ebx
mov eax, 0xfffffff4
jmp 0x4aa371
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4aa4b2
test byte [ecx], 0x20
je 0x4aa4b2
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [edx], ecx
jmp 0x4aa4b2
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x20]
je 0x4aa3e8
mov esi, dword [esp + 0x80]
cmp edi, 4
jl 0x4aa3ca
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x38]
add eax, 8
push eax
call fcn.0050a630
add esp, 0xc
cmp dword [esp + 0x100], edi
jle 0x4aa3de
or dword [esp + 0x104], 0x10000
push esi
call dword [0x880678]
add esp, 4
test dword [esp + 0x104], 0x10000
mov ecx, dword [esp + 0x100]
je 0x4aa404
cmp ecx, edi
jl 0x4aa404
xor esi, esi
jmp 0x4aa40d
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
movzx edi, word [ebx + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
cmp eax, edi
jg 0x4aa45a
test edx, edx
je 0x4aa45a
lea eax, [edi*2 + 2]
cmp eax, dword [esp + 0x150]
lea edi, [edx + ecx*4]
cmovg eax, dword [esp + 0x150]
xor ebx, ebx
lea eax, [edx + eax*4]
mov ecx, eax
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, eax
cmova ecx, ebx
test ecx, ecx
je 0x4aa45a
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x150], 2
jge 0x4aa468
xor esi, esi
jmp 0x4aa489
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0xe8]
mov dword [edx], eax
mov eax, dword [esp + 0xf4]
sub eax, dword [esp + 0xe8]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4aa4a2
test byte [eax], 0x20
je 0x4aa4a2
mov edx, dword [eax + 0x18]
mov ecx, dword [esp + 0x120]
mov dword [edx], ecx
mov eax, esi
jmp 0x4aa4b2
mov eax, 0xffffffe8
jmp 0x4aa4b2
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x120
ret