Function at 0x49e310
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 0x49e3dd
cmp dword [esp + 0x254], ebx
jne 0x49e3dd
test eax, eax
jne 0x49e3dd
cmp dword [esp + 0x25c], 0xfffffc19
jne 0x49e3dd
cmp edx, 0xfffffc19
jne 0x49e3dd
pop edi
pop esi
pop ebp
mov eax, 0xfffffecc
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x264]
test ecx, 0xe20f5a6f
je 0x49e3fc
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x23c
ret
test ebp, ebp
je 0x49f29e
test eax, eax
je 0x49f29e
mov ebx, dword [esp + 0x268]
test ebx, ebx
jne 0x49e41f
test edi, edi
jg 0x49f29e
test edi, edi
jns 0x49e433
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x25c]
test eax, eax
jns 0x49e44e
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x23c
ret
test edx, edx
js 0x49f28e
cmp edx, eax
jg 0x49f28e
mov eax, dword [ebp]
cmp eax, 0x50435245
je 0x49e482
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 0x49e498
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 0x49e4c7
mov eax, 2
jmp 0x49e4cf
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xe0], eax
test edx, edx
je 0x49e573
test ecx, 0x2000
jne 0x49e573
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x260]
push dword [esp + 0x260]
call fcn.0050ab50
add esp, 0xc
test eax, eax
je 0x49e53f
cmp edi, 2
jl 0x49e517
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp eax, 5
jg 0x49e52f
cmp dword [esp + 0xe0], 1
mov eax, 0xffffffe7
jg 0x49f2a3
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x260]
test eax, eax
jle 0x49e573
cmp eax, dword [esp + 0x25c]
jge 0x49e573
mov ecx, dword [esp + 0x258]
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x80
jne 0x49e573
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 0x49e608
mov ecx, dword [eax]
test cl, 1
je 0x49e5d2
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
test cl, 2
je 0x49e5de
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
test cl, 0x10
je 0x49e5ea
mov edi, dword [eax + 0x14]
mov dword [esp + 0x60], edi
test cl, 4
je 0x49e600
mov eax, dword [eax + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x254]
test cl, 8
je 0x49e608
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x250]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x49e62c
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x49e625
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x250]
test ecx, 0x4000
je 0x49e63f
mov eax, dword [eax + 0x14]
cmp eax, edi
jae 0x49e63f
mov dword [esp + 0x60], eax
test ebp, ebp
jne 0x49e648
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 0x49e82a
cmp eax, 0x800000
je 0x49e81d
cmp eax, 0x1000000
jne 0x49e8aa
mov dword [esp + 0xc0], 0
test ebp, 0x700000
je 0x49e7e3
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x49e89a
je 0x49e87d
test ecx, ecx
je 0x49e860
cmp ecx, 0x100000
je 0x49e843
cmp ecx, 0x200000
jne 0x49e8aa
mov dword [esp + 0x70], 0
jmp 0x49e866
mov dword [esp + 0xc0], 1
jmp 0x49e7d9
test ecx, 0x1800000
je 0x49e7ce
mov eax, ecx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xc0], eax
jmp 0x49e7d9
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 0x49e8ca
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 0x49e8ca
mov ecx, 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov word [esp + 0x8c], 0xa0d
jmp 0x49e8ca
cmp ecx, 0x400000
je 0x49e8c1
cmp ecx, 0x500000
je 0x49e8ba
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x23c
ret
mov ecx, 2
jmp 0x49e8c6
mov ecx, 1
mov dword [esp + 0x70], ecx
cmp dword [esp + 0xe0], 0
je 0x49e8ec
test edx, 0x200
je 0x49e8ec
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 0x49e975
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49e975
inc ecx
lea ebp, [ecx + ecx*2]
lea eax, [ebp*4]
push eax
call dword [0xd91398]
mov edi, eax
add esp, 4
mov dword [esp + 0x64], edi
test edi, edi
jne 0x49e960
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 0x49e986
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 0x49ea27
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 0x49e9d8
mov edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49e9f8
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49e9e0
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x26c]
test eax, eax
jle 0x49ea14
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
cmp eax, 1
jle 0x49ea27
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x250]
jne 0x49ea85
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49ea69
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 0x49ea85
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x10], ch
jmp 0x49ea85
cmp dword [esp + 0x40], 0
jne 0x49ea85
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49ea85
test byte [eax + 4], 1
je 0x49ea85
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49eab6
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 0x49eab6
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 0x49ebf3
cmp dword [esp + 0x34], 0
mov edi, esi
je 0x49eb6f
cmp esi, ebx
jae 0x49ebf3
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49eb20
cmp edi, ebx
jae 0x49eb14
push dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a7c0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49eb14
mov eax, 1
jmp 0x49eb16
xor eax, eax
test eax, eax
jne 0x49ebec
jmp 0x49eb50
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49eb50
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49eb50
cmp ecx, 1
je 0x49ebec
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49ebec
inc edi
cmp edi, ebp
jae 0x49eb62
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49eb62
inc edi
cmp edi, ebp
jb 0x49eb55
cmp edi, ebx
jb 0x49eae2
jmp 0x49ebec
cmp esi, ebx
jae 0x49ebf3
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
nop
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49ebbb
cmp edi, ebx
jae 0x49ebb3
push ebp
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a7c0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
mov esi, dword [esp + 0x74]
test eax, eax
je 0x49ebb3
mov eax, 1
jmp 0x49ebb5
xor eax, eax
test eax, eax
jne 0x49ebe4
jmp 0x49ebdf
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x49ebdf
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49ebdf
cmp esi, 1
je 0x49ebe4
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49ebe4
inc edi
cmp edi, ebx
jb 0x49eb80
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 0x49ede0
test ebx, ebx
je 0x49ec52
cmp esi, edi
jae 0x49ede0
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x10]
cmp cl, dl
je 0x49ec40
mov al, byte [esi]
cmp al, cl
je 0x49ede0
cmp al, dl
je 0x49ede0
inc esi
cmp esi, edi
jb 0x49ec24
jmp 0x49ede0
cmp byte [esi], cl
je 0x49ede0
inc esi
cmp esi, edi
jb 0x49ec40
jmp 0x49ede0
cmp dword [esp + 0x40], 0
je 0x49edab
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xcc]
add eax, ecx
cmp esi, eax
jbe 0x49ede0
cmp esi, edi
jae 0x49ed8b
cmp dword [esp + 0x34], 0
je 0x49ed18
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49ecbf
cmp esi, ecx
jbe 0x49ecb3
push dword [esp + 0x1c]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a950
add esp, 0x14
test eax, eax
je 0x49ecb3
mov eax, 1
jmp 0x49ecb5
xor eax, eax
test eax, eax
jne 0x49ed8b
jmp 0x49ecf2
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49ecf9
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49ecf2
cmp edx, 1
je 0x49ed8b
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49ed8b
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jae 0x49ed8b
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49ec88
inc esi
cmp esi, edi
jb 0x49ed02
jmp 0x49ed8b
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49ed50
cmp esi, ecx
jbe 0x49ed48
push ebp
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a950
add esp, 0x14
test eax, eax
je 0x49ed48
mov eax, 1
jmp 0x49ed4a
xor eax, eax
test eax, eax
jne 0x49ed87
jmp 0x49ed7b
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49ed82
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49ed7b
cmp edx, 1
je 0x49ed87
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49ed87
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jb 0x49ed20
mov ebp, dword [esp + 0x14]
cmp byte [esi - 1], 0xd
jne 0x49ede0
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x49ed9f
cmp eax, 2
jne 0x49ede0
cmp esi, edi
jae 0x49ede0
cmp byte [esi], 0xa
jne 0x49ede0
inc esi
jmp 0x49ede0
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x49eddc
cmp esi, edi
jae 0x49eddc
jmp 0x49edc0
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 0x49eddc
inc esi
cmp esi, edi
jb 0x49edc0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x250]
mov eax, dword [edi + 8]
or eax, dword [esp + 0x264]
test eax, 0x4000000
jne 0x49ee8c
cmp dword [esp + 0xe0], 0
jne 0x49ee8c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49ee21
test byte [ecx + 4], 2
je 0x49ee21
mov eax, ebp
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49ef1a.996
cmp dword [esp + 0x48], 0
je 0x49ee8c
mov eax, ebp
sub eax, esi
cmp eax, 0x3e8
jge 0x49ee8c
lea ecx, [ebx + esi]
cmp ecx, dword [esp + 0x30]
jbe 0x49ee8c
cmp ecx, ebp
jae case.0x49ef1a.996
mov bl, byte [esp + 0x13]
mov ah, byte [esp + 0x11]
cmp bl, ah
je 0x49ee70
lea esp, [esp]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x30], edx
cmp al, bl
je 0x49ee88
cmp al, ah
je 0x49ee88
cmp ecx, ebp
jb 0x49ee50
xor ebp, ebp
jmp 0x49f07b
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x30], ecx
inc ecx
cmp al, bl
je 0x49ee88
cmp ecx, ebp
jb 0x49ee70
xor ebp, ebp
jmp 0x49f07b
cmp edx, ebp
jae case.0x49ef1a.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.0049f610
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
je 0x49ef01
cmp dword [esp + 0x38], 0
jne 0x49ef01
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49f066
je case.0x49ef1a.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49ef1a
jmp dword [eax*4 + 0x49f2b0]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49ef6d
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49ef6d
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49ef6d
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49ef6d
jmp 0x49ef60
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49ef6d
inc edi
cmp edi, ecx
jb 0x49ef60
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49efbe
test edx, edx
je 0x49f035
cmp esi, ebx
jae 0x49efb0
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.0050a7c0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49efb0
lea eax, [ebp + 1]
jmp 0x49efb2
xor eax, eax
test eax, eax
jne 0x49f07b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49f07b
cmp edi, dword [esp + 0x14]
ja 0x49f07b
mov ebp, dword [esp + 0x14]
cmp edi, dword [esp + 0x114]
jbe 0x49f01e
cmp byte [edi - 1], 0xd
jne 0x49f01e
cmp edi, ebp
jae 0x49f01e
cmp byte [edi], 0xa
jne 0x49f01e
mov eax, dword [esp + 0x250]
test dword [eax + 0xc], 0x800
jne 0x49f01e
cmp edx, 1
je 0x49f017
cmp edx, 2
je 0x49f017
cmp ecx, 2
jne 0x49f01e
lea esi, [edi + 1]
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x250]
mov dword [esp + 0x104], 0
jmp 0x49eac0
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49efc2
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49efc2
cmp ecx, 1
je 0x49f07b
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49f07b
jmp 0x49efc2
cmp ebp, 1
je 0x49f15e
cmp ebp, 0xfffffc19
je 0x49f15e
cmp dword [esp + 0x3c], 0
je 0x49f08f
push dword [esp + 0x64]
call dword [0xd9139c]
add esp, 4
test ebp, ebp
je 0x49f0c1
cmp ebp, 0xfffffff4
je 0x49f0c1
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49f0b4
push esi
mov esi, dword [esi + 4]
call dword [0xd913a4]
add esp, 4
test esi, esi
jne 0x49f0a3
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49f111
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49f10a
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 0x49f10a
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49f114
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49f130
test byte [ecx], 0x20
je 0x49f130
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x108]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49f151
jmp 0x49f140
push esi
mov esi, dword [esi + 4]
call dword [0xd913a4]
add esp, 4
test esi, esi
jne 0x49f140
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 0x49f1af
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49f191
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.004adfa0
add esp, 0xc
cmp dword [esp + 0xe4], ebx
jle 0x49f1a5
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xd9139c]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49f1cb
cmp esi, ebx
jl 0x49f1cb
xor ebx, ebx
jmp 0x49f1d4
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 0x49f218
test edx, edx
je 0x49f218
lea eax, [ecx*2 + 2]
mov ecx, dword [esp + 0x26c]
cmp eax, ecx
jle 0x49f202
mov eax, ecx
lea ecx, [edx + eax*4]
lea edi, [edx + esi*4]
cmp edi, ecx
jae 0x49f218
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 0x49f226
xor ebx, ebx
jmp 0x49f247
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 0x49f263
test byte [ecx], 0x20
je 0x49f263
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x104]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49f281
mov edi, edi
push esi
mov esi, dword [esi + 4]
call dword [0xd913a4]
add esp, 4
test esi, esi
jne 0x49f270
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