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

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x260]
xor eax, eax
mov dword [esp + 0x44], eax
xor ecx, ecx
mov eax, dword [esp + 0x258]
add eax, edx
mov dword [esp + 0x18], ecx
mov esi, eax
mov dword [esp + 0x114], eax
xor ebp, ebp
mov dword [esp + 0x48], ecx
xor ebx, ebx
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x250]
xor cl, cl
lea eax, [esi - 1]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], eax
xor ch, ch
mov byte [esp + 0x12], cl
lea eax, [esp + 0x118]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x258]
mov byte [esp + 0x10], ch
mov byte [esp + 0x13], cl
mov byte [esp + 0x11], ch
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov edi, dword [esp + 0x26c]
test ebp, ebp
jne 0x49ac7d
cmp dword [esp + 0x254], ebx
jne 0x49ac7d
test eax, eax
jne 0x49ac7d
cmp dword [esp + 0x25c], 0xfffffc19
jne 0x49ac7d
cmp edx, 0xfffffc19
jne 0x49ac7d
pop edi
pop esi
pop ebp
mov eax, 0xfffffecc
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x264]
test ecx, 0xe20f5a6f
je 0x49ac9c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x23c
ret
test ebp, ebp
je 0x49bb3e
test eax, eax
je 0x49bb3e
mov ebx, dword [esp + 0x268]
test ebx, ebx
jne 0x49acbf
test edi, edi
jg 0x49bb3e
test edi, edi
jns 0x49acd3
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x25c]
test eax, eax
jns 0x49acee
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x23c
ret
test edx, edx
js 0x49bb2e
cmp edx, eax
jg 0x49bb2e
mov eax, dword [ebp]
cmp eax, 0x50435245
je 0x49ad22
sub eax, 0x45524350
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x19
pop ebp
add eax, 0xffffffe3
pop ebx
add esp, 0x23c
ret
test byte [ebp + 0xc], 1
jne 0x49ad38
pop edi
pop esi
pop ebp
mov eax, 0xffffffe4
pop ebx
add esp, 0x23c
ret
mov edx, dword [ebp + 8]
mov eax, 0
and edx, 0x800
mov dword [esp + 0x34], edx
setne al
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa4], eax
test ecx, 0x8000000
je 0x49ad67
mov eax, 2
jmp 0x49ad6f
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xe0], eax
test edx, edx
je 0x49ae13
test ecx, 0x2000
jne 0x49ae13
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x260]
push dword [esp + 0x260]
call fcn.00507360
add esp, 0xc
test eax, eax
je 0x49addf
cmp edi, 2
jl 0x49adb7
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp eax, 5
jg 0x49adcf
cmp dword [esp + 0xe0], 1
mov eax, 0xffffffe7
jg 0x49bb43
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x260]
test eax, eax
jle 0x49ae13
cmp eax, dword [esp + 0x25c]
jge 0x49ae13
mov ecx, dword [esp + 0x258]
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x80
jne 0x49ae13
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x23c
ret
movzx eax, word [ebp + 0x22]
mov edx, 0x989680
movzx ebx, word [ebp + 0x24]
add eax, ebp
mov dword [esp + 0x88], eax
mov edi, edx
movzx eax, word [ebp + 0x26]
mov ebp, dword [ebp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x254]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x100], 0
test eax, eax
je 0x49aea8
mov ecx, dword [eax]
test cl, 1
je 0x49ae72
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
test cl, 2
je 0x49ae7e
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
test cl, 0x10
je 0x49ae8a
mov edi, dword [eax + 0x14]
mov dword [esp + 0x60], edi
test cl, 4
je 0x49aea0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x254]
test cl, 8
je 0x49aea8
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x250]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x49aecc
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x49aec5
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x250]
test ecx, 0x4000
je 0x49aedf
mov eax, dword [eax + 0x14]
cmp eax, edi
jae 0x49aedf
mov dword [esp + 0x60], eax
test ebp, ebp
jne 0x49aee8
mov ebp, 0x558600
mov edi, dword [esp + 0x250]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x84], 0
mov dword [esp + 0xbc], 0
mov ecx, dword [edi + 8]
mov eax, ecx
or eax, dword [esp + 0x264]
shr eax, 4
and eax, 1
mov edx, dword [edi + 0xc]
mov dword [esp + 0x50], eax
mov eax, edx
shr eax, 8
and eax, 1
mov dword [esp + 0x108], 0
mov dword [esp + 0x40], eax
mov eax, ecx
shr eax, 0x12
and eax, 1
mov dword [esp + 0x104], 0
mov dword [esp + 0x4c], eax
movzx eax, word [edi + 0x26]
imul ebx, eax
movzx eax, word [edi + 0x22]
mov dword [esp + 0xfc], 0
add ebx, eax
mov eax, dword [esp + 0x260]
mov dword [esp + 0xec], eax
add ebx, edi
mov eax, dword [esp + 0x25c]
mov dword [esp + 0xc8], ebx
mov ebx, dword [esp + 0x258]
add eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xcc], ebx
mov ebx, eax
mov eax, ecx
mov dword [esp + 0xd0], ebx
shr eax, 5
and eax, 1
mov dword [esp + 0xb0], eax
mov eax, ecx
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xac], eax
mov eax, ecx
shr eax, 0x19
and eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x264]
shr eax, 7
and eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x264]
shr eax, 8
and eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x264]
shr eax, 0xa
and eax, 1
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x264]
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, edx
shr eax, 0xc
and eax, 1
mov dword [esp + 0xc4], eax
lea eax, [ebp + 0x100]
mov dword [esp + 0x94], eax
lea eax, [ebp + 0x340]
mov ebp, dword [esp + 0x264]
mov dword [esp + 0x98], eax
mov eax, ebp
and eax, 0x1800000
je 0x49b0ca
cmp eax, 0x800000
je 0x49b0bd
cmp eax, 0x1000000
jne 0x49b14a
mov dword [esp + 0xc0], 0
test ebp, 0x700000
je 0x49b083
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x49b13a
je 0x49b11d
test ecx, ecx
je 0x49b100
cmp ecx, 0x100000
je 0x49b0e3
cmp ecx, 0x200000
jne 0x49b14a
mov dword [esp + 0x70], 0
jmp 0x49b106
mov dword [esp + 0xc0], 1
jmp 0x49b079
test ecx, 0x1800000
je 0x49b06e
mov eax, ecx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xc0], eax
jmp 0x49b079
xor ecx, ecx
mov eax, 0xd
mov dword [esp + 0x70], ecx
mov ecx, 1
mov dword [esp + 0x74], ecx
mov byte [esp + 0x8c], al
jmp 0x49b16a
xor ecx, ecx
mov dword [esp + 0x70], ecx
mov eax, 0xa
mov ecx, 1
mov dword [esp + 0x74], ecx
mov byte [esp + 0x8c], al
jmp 0x49b16a
mov ecx, 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov word [esp + 0x8c], 0xa0d
jmp 0x49b16a
cmp ecx, 0x400000
je 0x49b161
cmp ecx, 0x500000
je 0x49b15a
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x23c
ret
mov ecx, 2
jmp 0x49b166
mov ecx, 1
mov dword [esp + 0x70], ecx
cmp dword [esp + 0xe0], 0
je 0x49b18c
test edx, 0x200
je 0x49b18c
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
add esp, 0x23c
ret
mov eax, 0xaaaaaaab
mul dword [esp + 0x26c]
mov eax, 0x55555556
shr edx, 1
lea ebp, [edx + edx*2]
lea ecx, [ebp*2]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
movzx eax, word [edi + 0x20]
test ax, ax
je 0x49b215
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49b215
inc ecx
lea ebp, [ecx + ecx*2]
lea eax, [ebp*4]
push eax
call dword [0xc5c798]
mov edi, eax
add esp, 4
mov dword [esp + 0x64], edi
test edi, edi
jne 0x49b200
lea eax, [edi - 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x28], edi
jmp 0x49b226
mov eax, dword [esp + 0x268]
mov edi, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], eax
lea ecx, [ebp*2]
mov dword [esp + 0x68], ebp
mov eax, 0x55555556
mov dword [esp + 0xe8], 0
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49b2c7
lea ecx, [eax + ebp*4]
mov eax, dword [esp + 0x250]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x28]
add eax, 8
cmp edx, eax
jae 0x49b278
mov edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49b298
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49b280
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x26c]
test eax, eax
jle 0x49b2b4
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
cmp eax, 1
jle 0x49b2c7
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x250]
jne 0x49b325
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49b309
mov ecx, 1
mov dword [esp + 0x18], ecx
mov ch, byte [edx + 0x18]
mov byte [esp + 0x10], ch
mov cl, ch
mov byte [esp + 0x12], cl
test al, 0x20
je 0x49b325
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x10], ch
jmp 0x49b325
cmp dword [esp + 0x40], 0
jne 0x49b325
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49b325
test byte [eax + 4], 1
je 0x49b325
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49b356
mov ch, byte [edx + 0x1a]
mov dword [esp + 0x48], 1
mov cl, ch
mov byte [esp + 0x11], ch
mov byte [esp + 0x13], cl
test al, al
jns 0x49b356
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x11], ch
mov ebp, dword [esp + 0x14]
lea ebx, [ebx]
cmp dword [esp + 0x4c], 0
mov edi, ebp
je 0x49b493
cmp dword [esp + 0x34], 0
mov edi, esi
je 0x49b40f
cmp esi, ebx
jae 0x49b493
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49b3c0
cmp edi, ebx
jae 0x49b3b4
push dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.00506fd0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49b3b4
mov eax, 1
jmp 0x49b3b6
xor eax, eax
test eax, eax
jne 0x49b48c
jmp 0x49b3f0
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49b3f0
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49b3f0
cmp ecx, 1
je 0x49b48c
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49b48c
inc edi
cmp edi, ebp
jae 0x49b402
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49b402
inc edi
cmp edi, ebp
jb 0x49b3f5
cmp edi, ebx
jb 0x49b382
jmp 0x49b48c
cmp esi, ebx
jae 0x49b493
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
nop
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49b45b
cmp edi, ebx
jae 0x49b453
push ebp
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.00506fd0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
mov esi, dword [esp + 0x74]
test eax, eax
je 0x49b453
mov eax, 1
jmp 0x49b455
xor eax, eax
test eax, eax
jne 0x49b484
jmp 0x49b47f
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x49b47f
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49b47f
cmp esi, 1
je 0x49b484
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49b484
inc edi
cmp edi, ebx
jb 0x49b420
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x250]
mov eax, dword [edx + 8]
or eax, dword [esp + 0x264]
mov ebx, dword [esp + 0x18]
test eax, 0x4000000
jne 0x49b680
test ebx, ebx
je 0x49b4f2
cmp esi, edi
jae 0x49b680
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x10]
cmp cl, dl
je 0x49b4e0
mov al, byte [esi]
cmp al, cl
je 0x49b680
cmp al, dl
je 0x49b680
inc esi
cmp esi, edi
jb 0x49b4c4
jmp 0x49b680
cmp byte [esi], cl
je 0x49b680
inc esi
cmp esi, edi
jb 0x49b4e0
jmp 0x49b680
cmp dword [esp + 0x40], 0
je 0x49b64b
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xcc]
add eax, ecx
cmp esi, eax
jbe 0x49b680
cmp esi, edi
jae 0x49b62b
cmp dword [esp + 0x34], 0
je 0x49b5b8
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49b55f
cmp esi, ecx
jbe 0x49b553
push dword [esp + 0x1c]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.00507160
add esp, 0x14
test eax, eax
je 0x49b553
mov eax, 1
jmp 0x49b555
xor eax, eax
test eax, eax
jne 0x49b62b
jmp 0x49b592
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49b599
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49b592
cmp edx, 1
je 0x49b62b
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49b62b
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jae 0x49b62b
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49b528
inc esi
cmp esi, edi
jb 0x49b5a2
jmp 0x49b62b
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49b5f0
cmp esi, ecx
jbe 0x49b5e8
push ebp
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.00507160
add esp, 0x14
test eax, eax
je 0x49b5e8
mov eax, 1
jmp 0x49b5ea
xor eax, eax
test eax, eax
jne 0x49b627
jmp 0x49b61b
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49b622
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49b61b
cmp edx, 1
je 0x49b627
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49b627
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jb 0x49b5c0
mov ebp, dword [esp + 0x14]
cmp byte [esi - 1], 0xd
jne 0x49b680
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x49b63f
cmp eax, 2
jne 0x49b680
cmp esi, edi
jae 0x49b680
cmp byte [esi], 0xa
jne 0x49b680
inc esi
jmp 0x49b680
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x49b67c
cmp esi, edi
jae 0x49b67c
jmp 0x49b660
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x49b67c
inc esi
cmp esi, edi
jb 0x49b660
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x250]
mov eax, dword [edi + 8]
or eax, dword [esp + 0x264]
test eax, 0x4000000
jne 0x49b72c
cmp dword [esp + 0xe0], 0
jne 0x49b72c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49b6c1
test byte [ecx + 4], 2
je 0x49b6c1
mov eax, ebp
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49b7ba.996
cmp dword [esp + 0x48], 0
je 0x49b72c
mov eax, ebp
sub eax, esi
cmp eax, 0x3e8
jge 0x49b72c
lea ecx, [ebx + esi]
cmp ecx, dword [esp + 0x30]
jbe 0x49b72c
cmp ecx, ebp
jae case.0x49b7ba.996
mov bl, byte [esp + 0x13]
mov ah, byte [esp + 0x11]
cmp bl, ah
je 0x49b710
lea esp, [esp]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x30], edx
cmp al, bl
je 0x49b728
cmp al, ah
je 0x49b728
cmp ecx, ebp
jb 0x49b6f0
xor ebp, ebp
jmp 0x49b91b
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x30], ecx
inc ecx
cmp al, bl
je 0x49b728
cmp ecx, ebp
jb 0x49b710
xor ebp, ebp
jmp 0x49b91b
cmp edx, ebp
jae case.0x49b7ba.996
push 0
push 0
lea eax, [esp + 0x60]
mov dword [esp + 0xdc], esi
push eax
push 2
push esi
push dword [esp + 0xdc]
mov dword [esp + 0xf4], esi
push esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x9c], 0
call fcn.0049beb0
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
je 0x49b7a1
cmp dword [esp + 0x38], 0
jne 0x49b7a1
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49b906
je case.0x49b7ba.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49b7ba
jmp dword [eax*4 + 0x49bb50]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49b80d
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49b80d
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49b80d
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49b80d
jmp 0x49b800
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49b80d
inc edi
cmp edi, ecx
jb 0x49b800
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49b85e
test edx, edx
je 0x49b8d5
cmp esi, ebx
jae 0x49b850
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.00506fd0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49b850
lea eax, [ebp + 1]
jmp 0x49b852
xor eax, eax
test eax, eax
jne 0x49b91b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49b91b
cmp edi, dword [esp + 0x14]
ja 0x49b91b
mov ebp, dword [esp + 0x14]
cmp edi, dword [esp + 0x114]
jbe 0x49b8be
cmp byte [edi - 1], 0xd
jne 0x49b8be
cmp edi, ebp
jae 0x49b8be
cmp byte [edi], 0xa
jne 0x49b8be
mov eax, dword [esp + 0x250]
test dword [eax + 0xc], 0x800
jne 0x49b8be
cmp edx, 1
je 0x49b8b7
cmp edx, 2
je 0x49b8b7
cmp ecx, 2
jne 0x49b8be
lea esi, [edi + 1]
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x250]
mov dword [esp + 0x104], 0
jmp 0x49b360
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49b862
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49b862
cmp ecx, 1
je 0x49b91b
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49b91b
jmp 0x49b862
cmp ebp, 1
je 0x49b9fe
cmp ebp, 0xfffffc19
je 0x49b9fe
cmp dword [esp + 0x3c], 0
je 0x49b92f
push dword [esp + 0x64]
call dword [0xc5c79c]
add esp, 4
test ebp, ebp
je 0x49b961
cmp ebp, 0xfffffff4
je 0x49b961
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49b954
push esi
mov esi, dword [esi + 4]
call dword [0xc5c7a4]
add esp, 4
test esi, esi
jne 0x49b943
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49b9b1
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49b9aa
mov eax, dword [esp + 0x268]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x258]
sub ebx, edx
mov dword [eax], ebx
mov ebx, dword [esp + 0x25c]
mov dword [eax + 4], ebx
cmp ecx, 2
jle 0x49b9aa
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49b9b4
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49b9d0
test byte [ecx], 0x20
je 0x49b9d0
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x108]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49b9f1
jmp 0x49b9e0
push esi
mov esi, dword [esi + 4]
call dword [0xc5c7a4]
add esp, 4
test esi, esi
jne 0x49b9e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x24]
je 0x49ba4f
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49ba31
lea eax, [ebx*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x270]
add eax, 8
push eax
call fcn.004aa840
add esp, 0xc
cmp dword [esp + 0xe4], ebx
jle 0x49ba45
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xc5c79c]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49ba6b
cmp esi, ebx
jl 0x49ba6b
xor ebx, ebx
jmp 0x49ba74
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
movzx ecx, word [edi + 0x1e]
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x268]
sar eax, 1
cmp eax, ecx
jg 0x49bab8
test edx, edx
je 0x49bab8
lea eax, [ecx*2 + 2]
mov ecx, dword [esp + 0x26c]
cmp eax, ecx
jle 0x49baa2
mov eax, ecx
lea ecx, [edx + eax*4]
lea edi, [edx + esi*4]
cmp edi, ecx
jae 0x49bab8
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x26c], 2
jge 0x49bac6
xor ebx, ebx
jmp 0x49bae7
mov eax, dword [esp + 0xd4]
sub eax, dword [esp + 0xcc]
mov dword [edx], eax
mov eax, dword [esp + 0xd8]
sub eax, dword [esp + 0xcc]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49bb03
test byte [ecx], 0x20
je 0x49bb03
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x104]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49bb21
mov edi, edi
push esi
mov esi, dword [esi + 4]
call dword [0xc5c7a4]
add esp, 4
test esi, esi
jne 0x49bb10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x23c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe8
pop ebx
add esp, 0x23c
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret