Function at 0x49de80
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 0x49df4d
cmp dword [esp + 0x254], ebx
jne 0x49df4d
test eax, eax
jne 0x49df4d
cmp dword [esp + 0x25c], 0xfffffc19
jne 0x49df4d
cmp edx, 0xfffffc19
jne 0x49df4d
pop edi
pop esi
pop ebp
mov eax, 0xfffffecc
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x264]
test ecx, 0xe20f5a6f
je 0x49df6c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x23c
ret
test ebp, ebp
je 0x49ee0e
test eax, eax
je 0x49ee0e
mov ebx, dword [esp + 0x268]
test ebx, ebx
jne 0x49df8f
test edi, edi
jg 0x49ee0e
test edi, edi
jns 0x49dfa3
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x25c]
test eax, eax
jns 0x49dfbe
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x23c
ret
test edx, edx
js 0x49edfe
cmp edx, eax
jg 0x49edfe
mov eax, dword [ebp]
cmp eax, 0x50435245
je 0x49dff2
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 0x49e008
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 0x49e037
mov eax, 2
jmp 0x49e03f
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xe0], eax
test edx, edx
je 0x49e0e3
test ecx, 0x2000
jne 0x49e0e3
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x260]
push dword [esp + 0x260]
call fcn.0050a6c0
add esp, 0xc
test eax, eax
je 0x49e0af
cmp edi, 2
jl 0x49e087
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp eax, 5
jg 0x49e09f
cmp dword [esp + 0xe0], 1
mov eax, 0xffffffe7
jg 0x49ee13
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x260]
test eax, eax
jle 0x49e0e3
cmp eax, dword [esp + 0x25c]
jge 0x49e0e3
mov ecx, dword [esp + 0x258]
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x80
jne 0x49e0e3
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 0x49e178
mov ecx, dword [eax]
test cl, 1
je 0x49e142
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
test cl, 2
je 0x49e14e
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
test cl, 0x10
je 0x49e15a
mov edi, dword [eax + 0x14]
mov dword [esp + 0x60], edi
test cl, 4
je 0x49e170
mov eax, dword [eax + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x254]
test cl, 8
je 0x49e178
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x250]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x49e19c
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x49e195
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x250]
test ecx, 0x4000
je 0x49e1af
mov eax, dword [eax + 0x14]
cmp eax, edi
jae 0x49e1af
mov dword [esp + 0x60], eax
test ebp, ebp
jne 0x49e1b8
mov ebp, 0x55c600
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 0x49e39a
cmp eax, 0x800000
je 0x49e38d
cmp eax, 0x1000000
jne 0x49e41a
mov dword [esp + 0xc0], 0
test ebp, 0x700000
je 0x49e353
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x49e40a
je 0x49e3ed
test ecx, ecx
je 0x49e3d0
cmp ecx, 0x100000
je 0x49e3b3
cmp ecx, 0x200000
jne 0x49e41a
mov dword [esp + 0x70], 0
jmp 0x49e3d6
mov dword [esp + 0xc0], 1
jmp 0x49e349
test ecx, 0x1800000
je 0x49e33e
mov eax, ecx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xc0], eax
jmp 0x49e349
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 0x49e43a
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 0x49e43a
mov ecx, 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov word [esp + 0x8c], 0xa0d
jmp 0x49e43a
cmp ecx, 0x400000
je 0x49e431
cmp ecx, 0x500000
je 0x49e42a
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x23c
ret
mov ecx, 2
jmp 0x49e436
mov ecx, 1
mov dword [esp + 0x70], ecx
cmp dword [esp + 0xe0], 0
je 0x49e45c
test edx, 0x200
je 0x49e45c
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 0x49e4e5
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49e4e5
inc ecx
lea ebp, [ecx + ecx*2]
lea eax, [ebp*4]
push eax
call dword [0xc614f8]
mov edi, eax
add esp, 4
mov dword [esp + 0x64], edi
test edi, edi
jne 0x49e4d0
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 0x49e4f6
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 0x49e597
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 0x49e548
mov edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49e568
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49e550
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x26c]
test eax, eax
jle 0x49e584
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
cmp eax, 1
jle 0x49e597
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x250]
jne 0x49e5f5
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49e5d9
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 0x49e5f5
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x10], ch
jmp 0x49e5f5
cmp dword [esp + 0x40], 0
jne 0x49e5f5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49e5f5
test byte [eax + 4], 1
je 0x49e5f5
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49e626
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 0x49e626
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 0x49e763
cmp dword [esp + 0x34], 0
mov edi, esi
je 0x49e6df
cmp esi, ebx
jae 0x49e763
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e690
cmp edi, ebx
jae 0x49e684
push dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a330
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49e684
mov eax, 1
jmp 0x49e686
xor eax, eax
test eax, eax
jne 0x49e75c
jmp 0x49e6c0
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49e6c0
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49e6c0
cmp ecx, 1
je 0x49e75c
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49e75c
inc edi
cmp edi, ebp
jae 0x49e6d2
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49e6d2
inc edi
cmp edi, ebp
jb 0x49e6c5
cmp edi, ebx
jb 0x49e652
jmp 0x49e75c
cmp esi, ebx
jae 0x49e763
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
nop
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e72b
cmp edi, ebx
jae 0x49e723
push ebp
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a330
mov ebx, dword [esp + 0xe4]
add esp, 0x14
mov esi, dword [esp + 0x74]
test eax, eax
je 0x49e723
mov eax, 1
jmp 0x49e725
xor eax, eax
test eax, eax
jne 0x49e754
jmp 0x49e74f
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x49e74f
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49e74f
cmp esi, 1
je 0x49e754
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49e754
inc edi
cmp edi, ebx
jb 0x49e6f0
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 0x49e950
test ebx, ebx
je 0x49e7c2
cmp esi, edi
jae 0x49e950
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x10]
cmp cl, dl
je 0x49e7b0
mov al, byte [esi]
cmp al, cl
je 0x49e950
cmp al, dl
je 0x49e950
inc esi
cmp esi, edi
jb 0x49e794
jmp 0x49e950
cmp byte [esi], cl
je 0x49e950
inc esi
cmp esi, edi
jb 0x49e7b0
jmp 0x49e950
cmp dword [esp + 0x40], 0
je 0x49e91b
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xcc]
add eax, ecx
cmp esi, eax
jbe 0x49e950
cmp esi, edi
jae 0x49e8fb
cmp dword [esp + 0x34], 0
je 0x49e888
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e82f
cmp esi, ecx
jbe 0x49e823
push dword [esp + 0x1c]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a4c0
add esp, 0x14
test eax, eax
je 0x49e823
mov eax, 1
jmp 0x49e825
xor eax, eax
test eax, eax
jne 0x49e8fb
jmp 0x49e862
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49e869
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49e862
cmp edx, 1
je 0x49e8fb
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49e8fb
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jae 0x49e8fb
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49e7f8
inc esi
cmp esi, edi
jb 0x49e872
jmp 0x49e8fb
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e8c0
cmp esi, ecx
jbe 0x49e8b8
push ebp
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a4c0
add esp, 0x14
test eax, eax
je 0x49e8b8
mov eax, 1
jmp 0x49e8ba
xor eax, eax
test eax, eax
jne 0x49e8f7
jmp 0x49e8eb
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49e8f2
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49e8eb
cmp edx, 1
je 0x49e8f7
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49e8f7
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jb 0x49e890
mov ebp, dword [esp + 0x14]
cmp byte [esi - 1], 0xd
jne 0x49e950
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x49e90f
cmp eax, 2
jne 0x49e950
cmp esi, edi
jae 0x49e950
cmp byte [esi], 0xa
jne 0x49e950
inc esi
jmp 0x49e950
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x49e94c
cmp esi, edi
jae 0x49e94c
jmp 0x49e930
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 0x49e94c
inc esi
cmp esi, edi
jb 0x49e930
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x250]
mov eax, dword [edi + 8]
or eax, dword [esp + 0x264]
test eax, 0x4000000
jne 0x49e9fc
cmp dword [esp + 0xe0], 0
jne 0x49e9fc
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49e991
test byte [ecx + 4], 2
je 0x49e991
mov eax, ebp
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49ea8a.996
cmp dword [esp + 0x48], 0
je 0x49e9fc
mov eax, ebp
sub eax, esi
cmp eax, 0x3e8
jge 0x49e9fc
lea ecx, [ebx + esi]
cmp ecx, dword [esp + 0x30]
jbe 0x49e9fc
cmp ecx, ebp
jae case.0x49ea8a.996
mov bl, byte [esp + 0x13]
mov ah, byte [esp + 0x11]
cmp bl, ah
je 0x49e9e0
lea esp, [esp]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x30], edx
cmp al, bl
je 0x49e9f8
cmp al, ah
je 0x49e9f8
cmp ecx, ebp
jb 0x49e9c0
xor ebp, ebp
jmp 0x49ebeb
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x30], ecx
inc ecx
cmp al, bl
je 0x49e9f8
cmp ecx, ebp
jb 0x49e9e0
xor ebp, ebp
jmp 0x49ebeb
cmp edx, ebp
jae case.0x49ea8a.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.0049f180
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
je 0x49ea71
cmp dword [esp + 0x38], 0
jne 0x49ea71
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49ebd6
je case.0x49ea8a.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49ea8a
jmp dword [eax*4 + 0x49ee20]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49eadd
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49eadd
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49eadd
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49eadd
jmp 0x49ead0
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49eadd
inc edi
cmp edi, ecx
jb 0x49ead0
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49eb2e
test edx, edx
je 0x49eba5
cmp esi, ebx
jae 0x49eb20
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.0050a330
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49eb20
lea eax, [ebp + 1]
jmp 0x49eb22
xor eax, eax
test eax, eax
jne 0x49ebeb
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49ebeb
cmp edi, dword [esp + 0x14]
ja 0x49ebeb
mov ebp, dword [esp + 0x14]
cmp edi, dword [esp + 0x114]
jbe 0x49eb8e
cmp byte [edi - 1], 0xd
jne 0x49eb8e
cmp edi, ebp
jae 0x49eb8e
cmp byte [edi], 0xa
jne 0x49eb8e
mov eax, dword [esp + 0x250]
test dword [eax + 0xc], 0x800
jne 0x49eb8e
cmp edx, 1
je 0x49eb87
cmp edx, 2
je 0x49eb87
cmp ecx, 2
jne 0x49eb8e
lea esi, [edi + 1]
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x250]
mov dword [esp + 0x104], 0
jmp 0x49e630
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49eb32
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49eb32
cmp ecx, 1
je 0x49ebeb
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49ebeb
jmp 0x49eb32
cmp ebp, 1
je 0x49ecce
cmp ebp, 0xfffffc19
je 0x49ecce
cmp dword [esp + 0x3c], 0
je 0x49ebff
push dword [esp + 0x64]
call dword [0xc614fc]
add esp, 4
test ebp, ebp
je 0x49ec31
cmp ebp, 0xfffffff4
je 0x49ec31
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49ec24
push esi
mov esi, dword [esi + 4]
call dword [0xc61504]
add esp, 4
test esi, esi
jne 0x49ec13
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49ec81
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49ec7a
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 0x49ec7a
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49ec84
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49eca0
test byte [ecx], 0x20
je 0x49eca0
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x108]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49ecc1
jmp 0x49ecb0
push esi
mov esi, dword [esi + 4]
call dword [0xc61504]
add esp, 4
test esi, esi
jne 0x49ecb0
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 0x49ed1f
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49ed01
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.004adb10
add esp, 0xc
cmp dword [esp + 0xe4], ebx
jle 0x49ed15
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xc614fc]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49ed3b
cmp esi, ebx
jl 0x49ed3b
xor ebx, ebx
jmp 0x49ed44
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 0x49ed88
test edx, edx
je 0x49ed88
lea eax, [ecx*2 + 2]
mov ecx, dword [esp + 0x26c]
cmp eax, ecx
jle 0x49ed72
mov eax, ecx
lea ecx, [edx + eax*4]
lea edi, [edx + esi*4]
cmp edi, ecx
jae 0x49ed88
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 0x49ed96
xor ebx, ebx
jmp 0x49edb7
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 0x49edd3
test byte [ecx], 0x20
je 0x49edd3
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x104]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49edf1
mov edi, edi
push esi
mov esi, dword [esi + 4]
call dword [0xc61504]
add esp, 4
test esi, esi
jne 0x49ede0
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